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 29, 2024 22:45Joad NacerJoad NacerScore: 8,688Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 22:458,637138,794,95771,686,81602,273,280
2Apr 29, 2024 22:458,645143,736,55871,752,21802,273,280
3Apr 29, 2024 22:458,648101,244,13970,784,000996,0002,285,568
4Apr 29, 2024 22:458,649143,250,21371,790,01602,269,184
5Apr 29, 2024 22:458,65694,658,88669,848,0001,995,0002,285,568
6Apr 29, 2024 22:458,667101,030,56869,938,0001,998,0002,523,136
7Apr 29, 2024 22:458,66993,527,91869,951,0001,998,0002,285,568
8Apr 29, 2024 22:458,68896,451,35770,107,0002,003,0002,527,232
9Apr 29, 2024 22:458,689101,883,55070,119,0002,003,0002,285,568
10Apr 29, 2024 22:458,70998,310,36770,274,0002,007,0002,285,568
11Apr 29, 2024 22:458,825100,414,07971,241,0002,006,0002,285,568
12Apr 29, 2024 22:458,84895,962,76272,430,0001,005,0002,269,184
13Apr 29, 2024 22:459,793103,543,38879,279,0002,007,0002,273,280
14Apr 29, 2024 22:459,813110,233,30581,444,00002,260,992
15Apr 29, 2024 22:459,851108,782,61681,767,00002,285,568