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 listApr 29, 2024 19:54Joad NacerJoad NacerScore: 8,082Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 19:548,01093,859,39565,474,0001,007,0002,285,568
2Apr 29, 2024 19:548,01689,902,86365,525,0001,008,0002,379,776
3Apr 29, 2024 19:548,01996,400,45765,549,0001,008,0002,285,568
4Apr 29, 2024 19:548,02392,615,67565,585,0001,009,0002,265,088
5Apr 29, 2024 19:548,03391,600,36165,680,000995,0002,285,568
6Apr 29, 2024 19:548,03595,699,34065,680,0001,010,0002,285,568
7Apr 29, 2024 19:548,082132,519,27967,082,93702,277,376
8Apr 29, 2024 19:548,08289,222,92065,075,0002,002,0002,285,568
9Apr 29, 2024 19:548,11491,929,76765,334,0002,010,0002,285,568
10Apr 29, 2024 19:548,11799,382,22465,359,0002,011,0002,260,992
11Apr 29, 2024 19:548,162129,779,77267,743,98102,277,376
12Apr 29, 2024 19:548,323131,117,75869,080,06502,285,568
13Apr 29, 2024 19:548,98196,389,27774,541,00002,285,568
14Apr 29, 2024 19:549,005102,177,72672,746,0001,993,0002,285,568
15Apr 29, 2024 19:549,06298,643,71574,212,0001,002,0002,519,040