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 listJul 16, 2024 18:23Joad NacerJoad NacerScore: 7,694Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 16, 2024 18:237,54193,019,66862,591,00002,285,568
2Jul 16, 2024 18:237,54587,444,67561,616,0001,010,0002,269,184
3Jul 16, 2024 18:237,55093,641,77961,655,0001,010,0002,285,568
4Jul 16, 2024 18:237,56897,006,41960,820,0001,994,0002,285,568
5Jul 16, 2024 18:237,57288,716,16360,851,0001,995,0002,260,992
6Jul 16, 2024 18:237,57394,295,61560,862,0001,995,0002,285,568
7Jul 16, 2024 18:237,57693,018,56261,880,000998,0002,273,280
8Jul 16, 2024 18:237,69488,757,69262,863,000997,0002,273,280
9Jul 16, 2024 18:237,81789,393,21063,879,000998,0002,379,776
10Jul 16, 2024 18:237,859123,728,11265,228,20202,281,472
11Jul 16, 2024 18:237,863127,092,58065,259,61202,273,280
12Jul 16, 2024 18:237,867127,506,06865,296,99102,269,184
13Jul 16, 2024 18:238,43691,272,89868,022,0002,000,0002,269,184
14Jul 16, 2024 18:238,46993,234,12868,288,0002,008,0002,363,392
15Jul 16, 2024 18:238,54093,379,49468,889,0001,996,0002,277,376