Cubes for Masha
887B1300· pupil1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
30 1 2 3 4 56 7 8 9 0 12 3 4 5 6 7
Output
87
Sample 2of 2
Input
30 1 3 5 6 81 2 4 5 7 82 3 4 6 7 9
Output
98
58%
887B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)