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 13, 2024 22:17Joad NacerJoad NacerScore: 7,988Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2024 22:177,95993,124,68065,058,0001,000,0002,285,568
2May 13, 2024 22:177,96188,759,08065,072,0001,001,0002,273,280
3May 13, 2024 22:177,96296,794,79264,082,0002,002,0002,285,568
4May 13, 2024 22:177,96590,290,73164,109,0002,003,0002,285,568
5May 13, 2024 22:177,96690,261,19164,114,0002,003,0002,285,568
6May 13, 2024 22:177,97389,699,70264,169,0002,005,0002,285,568
7May 13, 2024 22:177,98589,130,47464,271,0002,008,0002,285,568
8May 13, 2024 22:177,98889,848,76164,288,0002,009,0002,531,328
9May 13, 2024 22:178,006128,364,07766,450,63102,289,664
10May 13, 2024 22:178,371133,167,98969,475,85602,273,280
11May 13, 2024 22:178,382133,707,01769,567,87702,273,280
12May 13, 2024 22:178,38996,495,18069,625,00002,269,184
13May 13, 2024 22:178,95898,547,14873,351,0001,004,0002,285,568
14May 13, 2024 22:178,971101,146,63273,451,0001,006,0002,285,568
15May 13, 2024 22:179,046101,785,42973,076,0002,002,0002,269,184