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 listJul 25, 2024 22:08UdbhavUdbhavScore: 11,334Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2024 22:0811,302119,578,95792,811,000997,0002,285,568
2Jul 25, 2024 22:0811,318119,478,25990,943,0002,998,0002,351,104
3Jul 25, 2024 22:0811,319121,280,06492,946,000999,0002,457,600
4Jul 25, 2024 22:0811,320124,238,28892,959,000999,0002,285,568
5Jul 25, 2024 22:0811,321126,310,34391,964,0001,999,0002,351,104
6Jul 25, 2024 22:0811,332120,070,06893,058,0001,000,0002,347,008
7Jul 25, 2024 22:0811,333123,442,63793,065,0001,000,0002,347,008
8Jul 25, 2024 22:0811,334124,053,15192,069,0002,001,0002,351,104
9Jul 25, 2024 22:0811,370115,851,76293,371,0001,003,0002,285,568
10Jul 25, 2024 22:0811,395127,738,93293,570,0001,006,0002,285,568
11Jul 25, 2024 22:0811,399122,540,90994,611,00002,449,408
12Jul 25, 2024 22:0811,432125,239,60692,888,0001,997,0002,285,568
13Jul 25, 2024 22:0811,480168,825,03595,284,33602,220,032
14Jul 25, 2024 22:0811,486173,188,42895,331,76302,211,840
15Jul 25, 2024 22:0811,509153,940,56195,524,51402,199,552