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 13:36GraceGraceScore: 5,336Success
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 13:365,31070,086,30042,069,0002,003,0002,273,280
2Jun 4, 2024 13:365,316115,289,09544,122,78302,285,568
3Jun 4, 2024 13:365,31769,746,00142,128,0002,006,0002,273,280
4Jun 4, 2024 13:365,31772,854,68642,125,0002,005,0002,392,064
5Jun 4, 2024 13:365,31967,712,72942,144,0002,006,0002,400,256
6Jun 4, 2024 13:365,319113,631,95944,147,98402,293,760
7Jun 4, 2024 13:365,32171,072,29142,155,0002,007,0002,273,280
8Jun 4, 2024 13:365,323127,155,28744,177,06902,281,472
9Jun 4, 2024 13:365,32468,106,48842,185,0002,008,0002,273,280
10Jun 4, 2024 13:365,32466,707,58242,178,0002,008,0002,392,064
11Jun 4, 2024 13:365,325124,655,22544,197,83802,281,472
12Jun 4, 2024 13:365,32665,860,10042,193,0002,009,0002,396,160
13Jun 4, 2024 13:365,32672,817,74042,197,0002,009,0002,273,280
14Jun 4, 2024 13:365,32661,253,34342,197,0002,009,0002,519,040
15Jun 4, 2024 13:365,32767,807,20143,213,0001,004,0002,510,848
16Jun 4, 2024 13:365,32765,253,33543,211,0001,004,0002,273,280
17Jun 4, 2024 13:365,329107,859,50144,233,35002,289,664
18Jun 4, 2024 13:365,33066,768,88942,229,0002,010,0002,498,560
19Jun 4, 2024 13:365,33067,530,19142,227,0002,010,0002,273,280
20Jun 4, 2024 13:365,33166,825,15542,235,0002,011,0002,265,088
21Jun 4, 2024 13:365,33274,706,29742,245,0002,011,0002,273,280
22Jun 4, 2024 13:365,33374,641,42242,252,0002,012,0002,273,280
23Jun 4, 2024 13:365,33367,862,26844,267,00002,400,256
24Jun 4, 2024 13:365,334109,282,93544,270,28602,285,568
25Jun 4, 2024 13:365,33665,234,93944,292,00002,273,280
26Jun 4, 2024 13:365,341120,380,61544,326,89502,281,472
27Jun 4, 2024 13:365,34270,958,17443,334,0001,007,0002,273,280
28Jun 4, 2024 13:365,34571,580,24743,356,0001,008,0002,273,280
29Jun 4, 2024 13:365,34769,190,04043,374,0001,008,0002,396,160
30Jun 4, 2024 13:365,34967,502,80344,398,00002,404,352
31Jun 4, 2024 13:365,35276,818,74243,414,0001,009,0002,396,160
32Jun 4, 2024 13:365,36270,278,47143,490,0001,011,0002,273,280
33Jun 4, 2024 13:365,368117,221,13744,550,25402,289,664
34Jun 4, 2024 13:365,371106,551,03944,575,29802,281,472
35Jun 4, 2024 13:365,381118,034,72444,665,86902,297,856
36Jun 4, 2024 13:365,382102,752,26944,672,00502,285,568
37Jun 4, 2024 13:365,395111,727,23644,780,90302,277,376
38Jun 4, 2024 13:365,43471,197,55443,101,0002,004,0002,396,160
39Jun 4, 2024 13:365,47075,943,15145,405,00002,273,280
40Jun 4, 2024 13:366,43073,344,69352,361,0001,006,0002,273,280
41Jun 4, 2024 13:366,50375,948,65752,973,000999,0002,506,752
42Jun 4, 2024 13:366,50476,703,29651,983,0001,999,0002,473,984
43Jun 4, 2024 13:366,53877,110,95752,259,0002,009,0002,273,280
44Jun 4, 2024 13:366,54979,783,03953,350,0001,006,0002,396,160
45Jun 4, 2024 13:366,54984,557,18154,358,00002,387,968
46Jun 4, 2024 13:366,55976,312,01453,433,0001,008,0002,400,256
47Jun 4, 2024 13:366,56876,287,88754,518,00002,277,376
48Jun 4, 2024 13:366,61981,071,97953,939,000998,0002,273,280