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 20, 2025 08:08Matthew BookerMatthew BookerScore: 995,897Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2025 08:08993,9508,280,096,0848,246,784,0002,998,0002,289,664
2Apr 20, 2025 08:08995,8978,291,735,5678,264,942,000999,0002,523,136
3Apr 20, 2025 08:08996,6948,300,312,2678,270,559,0001,998,0002,281,472