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 listAug 23, 2023 04:13matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 23, 2023 04:1300000Error: expected "53689653771844097 ", got "53689653515844097 "
2Aug 23, 2023 04:149,626144,582,03279,898,46002,277,376
3Aug 23, 2023 04:149,759146,476,07981,003,30202,289,664
4Aug 23, 2023 04:149,783104,301,83280,198,0001,002,0002,519,040
5Aug 23, 2023 04:149,954109,356,66981,608,0001,007,0002,285,568
6Aug 23, 2023 04:1410,007107,631,03782,061,0001,000,0002,285,568
7Aug 23, 2023 04:1410,021110,464,90181,174,0002,004,0002,514,944
8Aug 23, 2023 04:1410,022106,431,13981,178,0002,004,0002,285,568
9Aug 23, 2023 04:1410,113140,427,80383,933,90202,285,568
10Aug 23, 2023 04:1410,120106,921,03682,993,000999,0002,285,568
11Aug 23, 2023 04:1410,136108,033,48682,124,0002,003,0002,285,568
12Aug 23, 2023 04:1410,907111,622,34990,524,00002,260,992
13Aug 23, 2023 04:1411,177124,553,50490,776,0001,995,0002,285,568