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 27, 2024 15:05GraceGraceScore: 6,221Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 15:055,91775,422,40648,112,0001,002,0002,498,560
2May 27, 2024 15:055,92978,079,37447,200,0002,008,0002,383,872
3May 27, 2024 15:055,93574,789,09147,252,0002,010,0002,260,992
4May 27, 2024 15:055,93673,679,45947,260,0002,011,0002,383,872
5May 27, 2024 15:055,93879,633,55548,281,0001,005,0002,519,040
6May 27, 2024 15:055,94370,659,70248,318,0001,006,0002,260,992
7May 27, 2024 15:055,94575,581,49949,340,00002,523,136
8May 27, 2024 15:055,94668,527,11549,355,00002,506,752
9May 27, 2024 15:055,94870,289,85548,361,0001,007,0002,383,872
10May 27, 2024 15:055,95378,287,37248,401,0001,008,0002,260,992
11May 27, 2024 15:055,95374,393,00248,401,0001,008,0002,260,992
12May 27, 2024 15:055,97070,795,70549,554,00002,375,680
13May 27, 2024 15:055,97176,461,48449,561,00002,383,872
14May 27, 2024 15:056,09880,278,73449,600,0001,012,0002,260,992
15May 27, 2024 15:056,169123,342,13051,199,72702,269,184
16May 27, 2024 15:056,186120,340,10051,347,36902,273,280
17May 27, 2024 15:056,221124,445,62251,633,41802,273,280
18May 27, 2024 15:056,57279,327,38354,547,00002,375,680
19May 27, 2024 15:056,57679,520,78353,586,000992,0002,260,992
20May 27, 2024 15:056,57778,996,79253,576,0001,010,0002,387,968
21May 27, 2024 15:056,57782,601,32453,581,0001,010,0002,519,040
22May 27, 2024 15:056,58281,073,47253,617,0001,011,0002,260,992
23May 27, 2024 15:056,58581,671,66753,641,0001,012,0002,260,992
24May 27, 2024 15:056,59080,920,64153,682,0001,012,0002,379,776
25May 27, 2024 15:056,60681,555,45052,837,0001,993,0002,387,968
26May 27, 2024 15:056,60779,085,42852,844,0001,994,0002,383,872
27May 27, 2024 15:056,60979,346,70352,861,0001,994,0002,383,872
28May 27, 2024 15:056,795125,759,28656,400,34002,269,184
29May 27, 2024 15:056,797120,294,11356,413,66702,277,376
30May 27, 2024 15:056,812145,429,93956,536,53202,265,088
31May 27, 2024 15:056,814129,048,25756,553,03802,281,472
32May 27, 2024 15:056,823118,476,76656,634,40302,277,376
33May 27, 2024 15:057,160123,201,92659,431,05802,277,376