Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listMay 28, 2024 02:13Matt StuchlikMatt StuchlikError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 28, 2024 02:1400000Error: expected "53687221215578835 ", got "53687247055870365 "
2May 28, 2024 02:2400000Error: expected "53686519906619322 ", got "53686520814397124 "
3May 28, 2024 02:2300000Error: expected "53692578399810788 ", got "53692626624551243 "
4May 28, 2024 02:2200000Error: expected "53692925011209132 ", got "53692973235949587 "
5May 28, 2024 02:1900000Error: expected "53682413480526747 ", got "53682414388304549 "
6May 28, 2024 02:1800000Error: expected "53690537738304160 ", got "53690576461429219 "
7May 28, 2024 02:1700000Error: expected "53688414801541207 ", got "53688435131937677 "
8May 28, 2024 02:1600000Error: expected "53685668189899436 ", got "53685715487458551 "
9May 28, 2024 02:1500000Error: expected "53689980702722900 ", got "53690006543014430 "
10May 28, 2024 02:256,175138,550,19751,250,15202,191,360
11May 28, 2024 02:216,178114,732,04151,277,44402,203,648
12May 28, 2024 02:136,229113,783,23851,704,10102,215,936
13May 28, 2024 02:136,288108,358,26752,190,87102,215,936
14May 28, 2024 02:216,331112,442,85352,548,09902,187,264
15May 28, 2024 02:256,334115,606,16352,572,65302,199,552
16May 28, 2024 02:136,335109,130,73352,582,68202,195,456
17May 28, 2024 02:256,344116,089,91352,659,09102,183,168
18May 28, 2024 02:216,352117,820,30352,723,87402,445,312