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 01:30Matt 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 01:3200000Error: expected "53681749936032324 ", got "53681802187249272 "
2May 28, 2024 01:4300000Error: expected "53690121340438816 ", got "53690181658948004 "
3May 28, 2024 01:4200000Error: expected "53689345571021993 ", got "53689434695190435 "
4May 28, 2024 01:4100000Error: expected "53690110177704349 ", got "53690168124411768 "
5May 28, 2024 01:3900000Error: expected "53682830076557196 ", got "53682905459729513 "
6May 28, 2024 01:3800000Error: Exit with code 1: Segmentation fault at address: 167804992stderr
7May 28, 2024 01:3600000Error: expected "53691877968090508 ", got "53691967092258950 "
8May 28, 2024 01:3500000Error: expected "53683802738882802 ", got "53683855093569102 "
9May 28, 2024 01:3400000Error: expected "53687340916235605 ", got "53687362513078546 "
10May 28, 2024 01:3300000Error: expected "53682113583961168 ", got "53682168023146333 "
11May 28, 2024 01:3000000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
12May 28, 2024 01:406,241118,129,94851,803,19202,183,168
13May 28, 2024 01:446,245132,253,29651,831,17802,195,456
14May 28, 2024 01:446,258138,970,33951,939,13702,183,168
15May 28, 2024 01:446,314124,331,21852,403,57802,187,264
16May 28, 2024 01:376,325110,108,28152,501,40902,183,168
17May 28, 2024 01:406,329109,111,07952,534,32602,232,320
18May 28, 2024 01:376,350121,350,11552,706,89302,187,264
19May 28, 2024 01:406,397117,497,43253,091,90302,224,128
20May 28, 2024 01:376,412118,246,66653,223,47402,183,168