Sasha and a Very Easy Test
1109E2700· international gm2.5s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5 1004 1 2 3 553 1 51 2 3 63 1 21 1 5 13 2 4
Output
151021
Sample 2of 3
Input
5 24 1 2 3 573 1 51 2 3 63 1 21 1 5 13 2 42 3 43 3 4
Output
1010
Sample 3of 3
Input
5 21001 2 3 4 5101 1 3 121 1 5 102 5 503 2 41 4 4 282 4 73 1 23 3 42 3 33 1 5
Output
640360520641
58%
1109E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)