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 25, 2024 11:01GraceGraceScore: 9,880Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 11:019,855105,772,64280,796,000997,0002,273,280
2May 25, 2024 11:019,859111,496,41379,837,0001,995,0002,285,568
3May 25, 2024 11:019,870110,356,51079,921,0001,998,0002,285,568
4May 25, 2024 11:019,870108,702,17679,921,0001,998,0002,277,376
5May 25, 2024 11:019,872103,704,64680,940,000999,0002,277,376
6May 25, 2024 11:019,872104,621,72379,938,0001,998,0002,269,184
7May 25, 2024 11:019,875105,186,53979,960,0001,999,0002,269,184
8May 25, 2024 11:019,880103,532,67680,002,0002,000,0002,396,160
9May 25, 2024 11:019,885103,122,97880,045,0002,001,0002,277,376
10May 25, 2024 11:019,895103,072,34280,125,0002,003,0002,265,088
11May 25, 2024 11:019,902110,261,55280,182,0002,004,0002,285,568
12May 25, 2024 11:019,903107,935,48680,191,0002,004,0002,285,568
13May 25, 2024 11:0110,209142,387,12184,731,15102,281,472
14May 25, 2024 11:0110,269154,514,89285,231,14902,277,376
15May 25, 2024 11:0110,463157,624,97586,840,58202,293,760