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 27, 2024 21:36Matt 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 27, 2024 21:4500000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
2May 27, 2024 22:0200000Error: expected "53690266478392633 ", got "53690272089513971 "
3May 27, 2024 22:0100000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
4May 27, 2024 22:0000000Error: expected "53689753807345626 ", got "53689846451307850 "
5May 27, 2024 21:5900000Error: expected "53681713484393520 ", got "53681738465608014 "
6May 27, 2024 21:5700000Error: expected "53687531989445033 ", got "53687601965302447 "
7May 27, 2024 21:5600000Error: expected "53687970815774345 ", got "53688028529584425 "
8May 27, 2024 21:5500000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
9May 27, 2024 21:5400000Error: expected "53683047214569816 ", got "53683116588797929 "
10May 27, 2024 21:5300000Error: expected "53687250912832344 ", got "53687299137572799 "
11May 27, 2024 21:5200000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
12May 27, 2024 21:5100000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
13May 27, 2024 21:4900000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
14May 27, 2024 21:4800000Error: expected "53687966766329380 ", got "53688092326299252 "
15May 27, 2024 21:4700000Error: expected "53686294254174545 ", got "53686341551733660 "
16May 27, 2024 21:4600000Error: expected "53692900950132134 ", got "53692942065427459 "
17May 27, 2024 21:4400000Error: Exit with code 1: Segmentation fault at address: 570458240stderr
18May 27, 2024 21:4300000Error: expected "53691355064024903 ", got "53691403288765358 "
19May 27, 2024 21:4100000Error: expected "53683952149151773 ", got "53683981931876543 "
20May 27, 2024 21:4000000Error: expected "53681565542942635 ", got "53681582141457390 "
21May 27, 2024 21:3800000Error: expected "53689864484645718 ", got "53689986680692844 "
22May 27, 2024 21:3700000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
23May 27, 2024 21:3600000Error: expected "53687077854801440 ", got "53687147229029553 "
24May 27, 2024 22:036,169131,765,29351,200,30002,301,952
25May 27, 2024 22:036,260123,061,47451,960,45102,191,360
26May 27, 2024 22:036,315129,767,69452,411,28202,195,456
27May 27, 2024 21:506,322107,651,03452,473,24602,199,552
28May 27, 2024 21:506,330109,930,44752,540,80502,183,168
29May 27, 2024 21:396,340112,527,42752,620,18202,179,072
30May 27, 2024 21:396,360104,575,27652,786,90802,203,648
31May 27, 2024 21:396,377111,804,69652,930,42702,207,744
32May 27, 2024 21:506,383121,658,71652,977,46602,191,360