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:01UdbhavUdbhavScore: 11,539Success
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:0111,463116,282,57794,140,0001,001,0002,347,008
2Jul 25, 2024 22:0111,474125,031,76093,229,0002,004,0002,355,200
3Jul 25, 2024 22:0111,475119,091,88194,244,0001,002,0002,342,912
4Jul 25, 2024 22:0111,476120,554,25294,249,0001,002,0002,285,568
5Jul 25, 2024 22:0111,500123,717,03395,451,00002,359,296
6Jul 25, 2024 22:0111,502119,435,51095,467,00002,285,568
7Jul 25, 2024 22:0111,539121,467,71692,778,0002,992,0002,351,104
8Jul 25, 2024 22:0111,539127,862,40293,775,0001,995,0002,285,568
9Jul 25, 2024 22:0111,549120,431,53593,858,0001,996,0002,347,008
10Jul 25, 2024 22:0111,559124,396,98193,940,0001,998,0002,285,568
11Jul 25, 2024 22:0111,567125,475,83994,007,0002,000,0002,445,312
12Jul 25, 2024 22:0111,584122,452,62894,144,0002,003,0002,285,568
13Jul 25, 2024 22:0111,649160,672,54596,686,41802,215,936
14Jul 25, 2024 22:0111,654162,755,30496,729,01002,203,648
15Jul 25, 2024 22:0111,656155,555,68396,741,32002,211,840