cf/mirror

Submarine in the Rybinsk Sea (easy edition)

CF
1195D11500· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
3
12 33 45
Output
26730
Sample 2of 4
Input
2
123 456
Output
1115598
Sample 3of 4
Input
1
1
Output
11
Sample 4of 4
Input
5
1000000000 1000000000 1000000000 1000000000 1000000000
Output
265359409
1195D1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)