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 25, 2024 11:05GraceGraceScore: 10,462Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 11:0510,428108,460,74886,553,00002,285,568
2May 25, 2024 11:0510,433113,990,41585,588,0001,006,0002,273,280
3May 25, 2024 11:0510,436111,818,13985,614,0001,007,0002,269,184
4May 25, 2024 11:0510,456115,342,30884,793,0001,995,0002,265,088
5May 25, 2024 11:0510,457114,530,97585,792,000997,0002,273,280
6May 25, 2024 11:0510,458112,722,94184,810,0001,995,0002,277,376
7May 25, 2024 11:0510,459107,280,73884,815,0001,995,0002,285,568
8May 25, 2024 11:0510,462111,421,27486,837,00002,285,568
9May 25, 2024 11:0510,467108,549,27185,882,000998,0002,285,568
10May 25, 2024 11:0510,518113,576,06585,294,0002,006,0002,273,280
11May 25, 2024 11:0510,520121,067,28286,312,0001,003,0002,285,568
12May 25, 2024 11:0510,595110,551,11685,942,0001,998,0002,285,568
13May 25, 2024 11:0510,641150,367,82388,320,41402,281,472
14May 25, 2024 11:0510,678149,591,49988,631,24602,293,760
15May 25, 2024 11:0510,819153,983,59489,796,24402,289,664