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 18:59Joad NacerJoad NacerScore: 10,127Success
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 18:5910,097115,914,37982,806,000997,0002,285,568
2Apr 27, 2024 18:5910,099110,023,00982,814,0001,009,0002,510,848
3Apr 27, 2024 18:5910,100107,467,32681,833,0001,995,0002,285,568
4Apr 27, 2024 18:5910,104110,286,75581,871,0001,996,0002,285,568
5Apr 27, 2024 18:5910,108107,628,24781,902,0001,997,0002,510,848
6Apr 27, 2024 18:5910,111107,306,94382,924,000999,0002,379,776
7Apr 27, 2024 18:5910,117109,242,10681,968,0001,999,0002,510,848
8Apr 27, 2024 18:5910,127108,132,87582,052,0002,001,0002,285,568
9Apr 27, 2024 18:5910,443117,562,45286,673,00002,285,568
10Apr 27, 2024 18:5910,459148,815,76886,806,90102,269,184
11Apr 27, 2024 18:5910,497155,052,31787,126,70902,281,472
12Apr 27, 2024 18:5910,503149,141,14887,177,67002,285,568
13Apr 27, 2024 18:5910,984114,160,93489,161,0002,003,0002,285,568
14Apr 27, 2024 18:5911,018115,305,93690,444,0001,004,0002,285,568
15Apr 27, 2024 18:5911,031119,153,83490,548,0001,006,0002,285,568