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 28, 2024 12:10Joad NacerJoad NacerScore: 9,103Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2024 12:108,93799,760,44472,176,0002,004,0002,510,848
2Apr 28, 2024 12:108,95696,986,52072,327,0002,009,0002,285,568
3Apr 28, 2024 12:108,96096,649,06073,362,0001,004,0002,285,568
4Apr 28, 2024 12:108,974102,742,77073,491,000993,0002,285,568
5Apr 28, 2024 12:108,99598,457,40773,649,0001,008,0002,281,472
6Apr 28, 2024 12:109,050101,053,84473,110,0002,003,0002,531,328
7Apr 28, 2024 12:109,07798,002,47673,333,0002,009,0002,285,568
8Apr 28, 2024 12:109,10398,054,64374,550,0001,007,0002,285,568
9Apr 28, 2024 12:109,149140,779,20875,939,67202,277,376
10Apr 28, 2024 12:109,150104,147,84173,951,0001,998,0002,260,992
11Apr 28, 2024 12:109,154130,710,92975,979,83602,293,760
12Apr 28, 2024 12:109,317146,422,75777,334,94702,289,664
13Apr 28, 2024 12:1010,104106,789,78281,870,0001,996,0002,285,568
14Apr 28, 2024 12:1010,124109,032,26482,032,0002,000,0002,285,568
15Apr 28, 2024 12:1010,341108,533,80883,838,0001,996,0002,285,568