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 21:01Joad NacerJoad NacerScore: 10,469Success
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 21:0110,309117,521,29884,561,0001,006,0002,265,088
2Apr 27, 2024 21:0110,310110,506,03584,568,0001,006,0002,265,088
3Apr 27, 2024 21:0110,311119,580,55984,576,0001,006,0002,531,328
4Apr 27, 2024 21:0110,314109,863,74785,605,00002,285,568
5Apr 27, 2024 21:0110,316119,655,58484,617,0001,007,0002,273,280
6Apr 27, 2024 21:0110,337119,595,64183,805,0001,995,0002,285,568
7Apr 27, 2024 21:0110,356109,571,14183,953,0001,998,0002,285,568
8Apr 27, 2024 21:0110,469160,587,47886,894,53302,269,184
9Apr 27, 2024 21:0110,504157,674,79687,184,23802,277,376
10Apr 27, 2024 21:0110,535109,944,81586,433,0001,005,0002,277,376
11Apr 27, 2024 21:0110,921162,758,35390,648,37402,277,376
12Apr 27, 2024 21:0111,149118,867,74591,532,0001,005,0002,392,064
13Apr 27, 2024 21:0111,221124,448,51491,135,0002,002,0002,269,184
14Apr 27, 2024 21:0111,259115,866,54192,446,0001,004,0002,285,568
15Apr 27, 2024 21:0111,420121,229,10193,791,000997,0002,277,376