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 29, 2024 17:10Steve HanSteve HanScore: 23,444Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 17:2722,239250,289,125184,584,65102,174,976
2Apr 29, 2024 17:2722,319239,049,129185,249,71002,301,952
3Apr 29, 2024 17:2722,351244,013,060185,510,67902,174,976
4Apr 29, 2024 17:1023,444261,456,784194,582,59202,174,976
5Apr 29, 2024 17:1023,494267,742,311194,998,08902,301,952
6Apr 29, 2024 17:1023,518253,476,159195,199,93102,297,856