Lunar New Year and Food Ordering
1106B1500· specialist2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
8 58 6 2 1 4 5 7 56 3 3 2 6 2 3 22 81 44 73 46 10
Output
2224141039
Sample 2of 3
Input
6 66 6 6 6 6 66 66 666 6666 66666 6666661 62 63 64 65 66 66
Output
363963996399963999960
Sample 3of 3
Input
6 66 6 6 6 6 66 66 666 6666 66666 6666661 62 133 64 115 66 6
Output
361105899996433332600
58%
1106B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)