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 listNov 15, 2024 03:21zielajzielajScore: 3,763Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 15, 2024 03:213,60757,945,06728,940,000997,0002,351,104
2Nov 15, 2024 03:213,63253,443,35828,134,0002,009,0002,342,912
3Nov 15, 2024 03:213,64752,232,11929,259,0001,008,0002,347,008
4Nov 15, 2024 03:213,76358,996,32630,223,0001,007,0002,277,376
5Nov 15, 2024 03:213,78049,820,39530,364,0001,012,0002,277,376
6Nov 15, 2024 03:213,81657,236,84231,675,00002,531,328