Stone Age Problem
1679B1200· pupil2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
5 51 2 3 4 51 1 52 101 5 111 4 12 1
Output
195051425
58%
1679B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
5 51 2 3 4 51 1 52 101 5 111 4 12 1
195051425