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:17Joad NacerJoad NacerScore: 10,096Success
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:1710,007106,096,85581,057,0002,001,0002,285,568
2Apr 27, 2024 19:1710,009109,628,87082,074,0001,000,0002,285,568
3Apr 27, 2024 19:1710,017105,931,01081,140,0002,003,0002,273,280
4Apr 27, 2024 19:1710,024105,750,19881,195,0002,004,0002,273,280
5Apr 27, 2024 19:1710,024110,237,10181,194,0002,004,0002,285,568
6Apr 27, 2024 19:1710,025110,555,66681,200,0002,004,0002,285,568
7Apr 27, 2024 19:1710,027109,054,50282,221,0001,002,0002,265,088
8Apr 27, 2024 19:1710,096106,396,58082,801,000997,0002,285,568
9Apr 27, 2024 19:1710,362144,377,34186,004,75402,277,376
10Apr 27, 2024 19:1710,465157,723,87086,857,07202,273,280
11Apr 27, 2024 19:1710,556113,472,76686,611,0001,007,0002,527,232
12Apr 27, 2024 19:1710,558147,186,20287,635,19902,285,568
13Apr 27, 2024 19:1710,841118,976,17587,982,0001,999,0002,514,944
14Apr 27, 2024 19:1710,909117,119,04290,547,00002,514,944
15Apr 27, 2024 19:1710,916119,972,72790,602,00002,273,280