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 listJun 4, 2024 18:44GraceGraceScore: 5,052Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 18:444,92970,449,81839,914,000997,0002,273,280
2Jun 4, 2024 18:444,93169,900,74238,928,0001,996,0002,273,280
3Jun 4, 2024 18:444,93364,320,79839,945,000998,0002,273,280
4Jun 4, 2024 18:444,93464,444,95838,957,0001,997,0002,392,064
5Jun 4, 2024 18:444,93562,910,38238,966,0001,998,0002,404,352
6Jun 4, 2024 18:444,93663,788,24039,967,000999,0002,273,280
7Jun 4, 2024 18:444,93863,931,04839,985,000999,0002,273,280
8Jun 4, 2024 18:444,93967,720,74239,997,000999,0002,400,256
9Jun 4, 2024 18:444,93967,592,83339,995,000999,0002,404,352
10Jun 4, 2024 18:444,94069,260,74538,999,0001,999,0002,273,280
11Jun 4, 2024 18:444,94464,733,06540,033,0001,000,0002,273,280
12Jun 4, 2024 18:444,94465,663,94439,037,0002,001,0002,404,352
13Jun 4, 2024 18:444,94467,369,12039,038,0002,001,0002,273,280
14Jun 4, 2024 18:444,94465,863,18540,037,0001,000,0002,273,280
15Jun 4, 2024 18:444,94661,945,63040,052,0001,001,0002,510,848
16Jun 4, 2024 18:444,94769,274,53140,063,0001,001,0002,273,280
17Jun 4, 2024 18:444,94766,018,33639,060,0002,003,0002,408,448
18Jun 4, 2024 18:445,050113,692,01941,912,85502,285,568
19Jun 4, 2024 18:445,052108,420,41941,931,20002,252,800
20Jun 4, 2024 18:445,056107,417,33741,962,33902,277,376
21Jun 4, 2024 18:445,056105,732,34141,961,76902,285,568
22Jun 4, 2024 18:445,058106,558,41641,980,46302,281,472
23Jun 4, 2024 18:445,06198,509,02042,005,25502,285,568
24Jun 4, 2024 18:445,062109,627,66142,016,25002,277,376
25Jun 4, 2024 18:445,062100,483,34442,012,10902,277,376
26Jun 4, 2024 18:445,065118,918,30642,042,73502,281,472
27Jun 4, 2024 18:445,067130,181,39342,056,15102,281,472
28Jun 4, 2024 18:445,071121,641,97242,089,34902,293,760
29Jun 4, 2024 18:445,076104,799,88642,126,83402,281,472
30Jun 4, 2024 18:445,11570,144,55141,444,0001,010,0002,273,280
31Jun 4, 2024 18:445,82769,394,76647,361,0001,007,0002,273,280
32Jun 4, 2024 18:445,83972,334,45648,464,00002,392,064
33Jun 4, 2024 18:445,84069,381,59047,462,0001,009,0002,396,160
34Jun 4, 2024 18:445,84373,309,17447,489,0001,010,0002,273,280
35Jun 4, 2024 18:445,85674,707,24748,604,00002,273,280
36Jun 4, 2024 18:445,88378,417,67946,840,0001,993,0002,404,352