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 14:31GraceGraceScore: 5,230Success
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 14:315,18969,993,02941,062,0002,003,0002,273,280
2May 31, 2024 14:315,19068,863,47541,077,0002,003,0002,273,280
3May 31, 2024 14:315,19066,625,11442,072,0001,001,0002,396,160
4May 31, 2024 14:315,19566,089,25641,111,0002,005,0002,400,256
5May 31, 2024 14:315,19865,369,54341,138,0002,006,0002,273,280
6May 31, 2024 14:315,20567,829,93641,190,0002,009,0002,273,280
7May 31, 2024 14:315,20569,203,50041,189,0002,009,0002,273,280
8May 31, 2024 14:315,20868,931,83541,215,0002,010,0002,404,352
9May 31, 2024 14:315,20965,420,96741,223,0002,010,0002,273,280
10May 31, 2024 14:315,21067,540,47942,239,0001,005,0002,396,160
11May 31, 2024 14:315,21372,608,39141,254,0002,012,0002,273,280
12May 31, 2024 14:315,21564,521,08842,275,0001,006,0002,273,280
13May 31, 2024 14:315,21665,500,90343,295,00002,396,160
14May 31, 2024 14:315,21669,043,48942,289,0001,006,0002,396,160
15May 31, 2024 14:315,21764,218,54042,296,0001,007,0002,400,256
16May 31, 2024 14:315,22568,213,06143,367,00002,273,280
17May 31, 2024 14:315,22868,529,61043,391,00002,273,280
18May 31, 2024 14:315,22869,779,18143,392,00002,273,280
19May 31, 2024 14:315,23071,731,38143,409,00002,408,448
20May 31, 2024 14:315,24265,535,88142,499,0001,011,0002,273,280
21May 31, 2024 14:315,25269,992,00843,589,00002,396,160
22May 31, 2024 14:315,26071,481,22042,641,0001,015,0002,273,280
23May 31, 2024 14:315,28269,504,11641,850,0001,992,0002,396,160
24May 31, 2024 14:315,37075,092,91744,571,00002,506,752
25May 31, 2024 14:305,403109,144,59244,847,46102,281,472
26May 31, 2024 14:305,405118,128,37544,864,77202,277,376
27May 31, 2024 14:315,411121,932,64144,912,17602,285,568
28May 31, 2024 14:305,411110,365,96544,911,20702,285,568
29May 31, 2024 14:315,414118,059,38244,934,88602,285,568
30May 31, 2024 14:315,415100,787,34144,942,07702,289,664
31May 31, 2024 14:315,420115,397,50744,983,11302,285,568
32May 31, 2024 14:315,422111,093,07745,005,52402,285,568
33May 31, 2024 14:315,426110,986,27745,033,84202,281,472
34May 31, 2024 14:315,435103,157,90945,108,64602,293,760
35May 31, 2024 14:315,457107,446,33245,296,12702,281,472
36May 31, 2024 14:315,486109,489,55945,531,86402,281,472