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 27, 2024 22:36Joad NacerJoad NacerScore: 9,357Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2024 22:369,321103,184,52976,357,0001,004,0002,285,568
2Apr 27, 2024 22:369,33298,352,36677,459,00002,506,752
3Apr 27, 2024 22:369,339100,012,73076,504,0001,006,0002,514,944
4Apr 27, 2024 22:369,339102,944,46676,510,0001,006,0002,285,568
5Apr 27, 2024 22:369,343109,799,29076,537,0001,007,0002,285,568
6Apr 27, 2024 22:369,345107,717,40276,553,0001,007,0002,285,568
7Apr 27, 2024 22:369,350103,965,59077,604,00002,519,040
8Apr 27, 2024 22:369,357107,172,18876,651,0001,008,0002,506,752
9Apr 27, 2024 22:369,655102,786,95479,135,0001,001,0002,502,656
10Apr 27, 2024 22:369,695146,596,33780,465,75402,273,280
11Apr 27, 2024 22:369,701136,761,17080,519,14702,277,376
12Apr 27, 2024 22:369,701143,804,81280,514,51402,273,280
13Apr 27, 2024 22:3610,741109,807,45288,149,0001,001,0002,506,752
14Apr 27, 2024 22:3611,294119,477,03892,743,000997,0002,506,752
15Apr 27, 2024 22:3611,300124,775,35991,796,0001,995,0002,285,568