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 19:05Joad NacerJoad NacerScore: 10,408Success
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 19:0510,099109,697,55382,814,0001,009,0002,510,848
2Apr 27, 2024 19:0510,102110,702,33482,846,000998,0002,285,568
3Apr 27, 2024 19:0510,102107,426,43881,854,0001,996,0002,285,568
4Apr 27, 2024 19:0510,104114,826,41281,870,0001,996,0002,514,944
5Apr 27, 2024 19:0510,125106,068,60382,040,0002,000,0002,285,568
6Apr 27, 2024 19:0510,205112,728,49883,690,0001,008,0002,285,568
7Apr 27, 2024 19:0510,214111,730,02082,782,0001,994,0002,285,568
8Apr 27, 2024 19:0510,408110,345,71185,385,0001,004,0002,285,568
9Apr 27, 2024 19:0510,499163,213,27987,145,77002,273,280
10Apr 27, 2024 19:0510,501161,678,36187,158,73402,273,280
11Apr 27, 2024 19:0510,526114,451,76185,356,0002,008,0002,285,568
12Apr 27, 2024 19:0510,560154,626,81087,645,62902,277,376
13Apr 27, 2024 19:0511,009117,431,17091,378,00002,285,568
14Apr 27, 2024 19:0511,018114,749,08190,446,0001,004,0002,514,944
15Apr 27, 2024 19:0511,085112,912,11591,006,0001,000,0002,355,200