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 "53685487255024438 ", got "53685532156653106 "
2May 31, 2024 11:1800000Error: expected "53689336666474048 ", got "53689336666218048 "
3May 31, 2024 11:185,49871,845,98544,617,0001,014,0002,273,280
4May 31, 2024 11:185,52074,951,64644,821,000996,0002,273,280
5May 31, 2024 11:185,52472,201,80044,833,0001,018,0002,392,064
6May 31, 2024 11:185,53775,807,21744,960,000999,0002,273,280
7May 31, 2024 11:185,54468,420,09844,019,0002,000,0002,273,280
8May 31, 2024 11:185,54570,556,74644,025,0002,001,0002,510,848
9May 31, 2024 11:185,54867,958,66545,049,0001,001,0002,392,064
10May 31, 2024 11:185,55269,074,17645,078,0001,001,0002,273,280
11May 31, 2024 11:185,55474,131,70545,093,0001,002,0002,273,280
12May 31, 2024 11:185,55572,814,96844,100,0002,004,0002,396,160
13May 31, 2024 11:185,56066,285,68245,144,0001,003,0002,273,280
14May 31, 2024 11:185,809110,998,28248,217,79002,293,760
15May 31, 2024 11:185,81478,670,72446,249,0002,010,0002,396,160
16May 31, 2024 11:185,825116,030,36748,350,63402,285,568
17May 31, 2024 11:185,901111,552,00548,975,35602,277,376
18May 31, 2024 11:185,930116,429,83349,220,20002,289,664
19May 31, 2024 11:185,949108,676,59249,375,95602,285,568
20May 31, 2024 11:186,006104,492,33849,850,61002,281,472