Sum of Progression
1921F1900· candidate master2s1024 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
53 31 1 21 2 22 2 11 1 23 1-100000000 -100000000 -1000000001 1 35 31 2 3 4 51 2 32 3 21 1 53 1100000000 100000000 1000000001 1 37 734 87 5 42 -44 66 -322 2 24 3 11 3 26 2 15 2 22 5 26 1 2
Output
5 1 3-60000000022 12 55600000000171 42 118 66 -108 23 2
58%
1921F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)