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: 11,185Success
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,805141,362,86789,682,09502,281,472
2Apr 27, 2024 21:0110,807150,801,35889,694,22702,269,184
3Apr 27, 2024 21:0110,991162,571,43491,224,66102,273,280
4Apr 27, 2024 21:0111,173119,998,29390,743,0001,994,0002,285,568
5Apr 27, 2024 21:0111,179118,956,23390,794,0001,995,0002,285,568
6Apr 27, 2024 21:0111,181120,378,96991,802,000997,0002,285,568
7Apr 27, 2024 21:0111,184124,872,74591,831,000998,0002,285,568
8Apr 27, 2024 21:0111,185117,521,29290,838,0001,996,0002,269,184
9Apr 27, 2024 21:0111,198116,051,51390,945,0001,998,0002,285,568
10Apr 27, 2024 21:0111,203120,540,41690,986,0001,999,0002,285,568
11Apr 27, 2024 21:0111,223116,481,74591,150,0002,003,0002,269,184
12Apr 27, 2024 21:0111,372120,987,46193,384,0001,004,0002,285,568
13Apr 27, 2024 21:0113,364137,063,328108,923,0001,998,0002,265,088
14Apr 27, 2024 21:0113,598137,110,332110,865,0001,997,0002,285,568
15Apr 27, 2024 21:0113,724138,271,445111,913,0001,998,0002,285,568