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:19Joad NacerJoad NacerScore: 10,041Success
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:1910,004106,285,20281,032,0002,000,0002,285,568
2Apr 27, 2024 21:1910,015112,838,43382,123,0001,001,0002,285,568
3Apr 27, 2024 21:1910,023112,157,69081,183,0002,004,0002,265,088
4Apr 27, 2024 21:1910,026109,386,15481,211,0002,005,0002,285,568
5Apr 27, 2024 21:1910,026106,191,19982,217,0001,002,0002,269,184
6Apr 27, 2024 21:1910,034103,752,17581,277,0002,006,0002,285,568
7Apr 27, 2024 21:1910,034105,789,78581,279,0002,006,0002,285,568
8Apr 27, 2024 21:1910,041108,202,56781,331,0002,008,0002,285,568
9Apr 27, 2024 21:1910,043109,259,90781,350,0002,008,0002,285,568
10Apr 27, 2024 21:1910,482151,419,00586,996,67802,277,376
11Apr 27, 2024 21:1910,487160,773,41887,040,86802,265,088
12Apr 27, 2024 21:1910,548146,135,73287,550,38902,285,568
13Apr 27, 2024 21:1910,838112,581,67187,959,0001,999,0002,265,088
14Apr 27, 2024 21:1910,852119,013,19489,074,0001,000,0002,265,088
15Apr 27, 2024 21:1911,761128,809,43696,611,0001,006,0002,285,568