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 31, 2024 13:18GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 13:1800000Error: expected "53689478527339576 ", got "53689478524779576 "
2May 31, 2024 13:185,28966,378,99841,902,0001,995,0002,273,280
3May 31, 2024 13:185,30066,062,77342,990,000999,0002,396,160
4May 31, 2024 13:185,30065,213,11942,987,000999,0002,404,352
5May 31, 2024 13:185,30164,621,47542,002,0002,000,0002,400,256
6May 31, 2024 13:185,30265,463,49242,004,0002,000,0002,273,280
7May 31, 2024 13:185,30265,524,25942,009,0002,000,0002,404,352
8May 31, 2024 13:185,31070,797,16943,075,0001,001,0002,400,256
9May 31, 2024 13:185,31570,256,27042,113,0002,005,0002,392,064
10May 31, 2024 13:185,32569,542,60442,188,0002,008,0002,273,280
11May 31, 2024 13:185,32773,565,99242,207,0002,009,0002,273,280
12May 31, 2024 13:185,32866,551,60043,221,0001,005,0002,400,256
13May 31, 2024 13:185,36867,128,16343,543,0001,012,0002,273,280
14May 31, 2024 13:185,493106,325,76345,592,86902,285,568
15May 31, 2024 13:185,494109,828,40545,599,86902,285,568
16May 31, 2024 13:185,506102,027,38245,701,23402,285,568
17May 31, 2024 13:185,507109,693,71045,707,48302,281,472
18May 31, 2024 13:185,508120,740,79045,716,17202,281,472
19May 31, 2024 13:185,512104,285,79945,748,99102,285,568
20May 31, 2024 13:185,512111,601,84445,748,30202,281,472
21May 31, 2024 13:185,518116,399,16745,795,50402,277,376
22May 31, 2024 13:185,551101,229,95946,076,15202,289,664