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 listJan 20, 2025 23:08Cameron AavikCameron AavikScore: 37,067Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2025 23:0837,035333,241,559244,518,00062,876,0002,535,424
2Jan 20, 2025 23:0837,067334,874,359243,725,00063,927,0002,314,240
3Jan 20, 2025 23:0838,000336,704,704250,321,00065,083,0002,293,760