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 11: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 11:1800000Error: expected "53681454927797127 ", got "53681454927541127 "
2May 31, 2024 11:1800000Error: expected "53690146830303153 ", got "53690146174943153 "
3May 31, 2024 11:185,52071,640,19544,822,000996,0002,408,448
4May 31, 2024 11:185,52370,270,26845,837,00002,396,160
5May 31, 2024 11:185,53666,081,35543,948,0001,997,0002,273,280
6May 31, 2024 11:185,53968,576,27743,973,0001,998,0002,273,280
7May 31, 2024 11:185,54773,235,92144,037,0002,001,0002,273,280
8May 31, 2024 11:185,55472,652,11144,091,0002,004,0002,273,280
9May 31, 2024 11:185,55966,267,89144,133,0002,006,0002,392,064
10May 31, 2024 11:185,55967,220,06444,135,0002,006,0002,396,160
11May 31, 2024 11:185,57573,062,59844,262,0002,011,0002,273,280
12May 31, 2024 11:185,61272,154,64846,578,00002,273,280
13May 31, 2024 11:185,62673,171,57146,699,00002,273,280
14May 31, 2024 11:185,767120,855,18947,868,96502,281,472
15May 31, 2024 11:185,76869,235,44846,881,000997,0002,510,848
16May 31, 2024 11:185,768109,299,79247,871,47902,285,568
17May 31, 2024 11:185,776110,698,96447,939,86302,281,472
18May 31, 2024 11:185,816110,144,71148,270,22602,285,568
19May 31, 2024 11:185,977117,982,39449,611,77702,273,280
20May 31, 2024 11:186,264123,828,12851,990,96802,285,568