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 listOct 11, 2023 10:57Serge SmirnovSerge SmirnovScore: 35,432Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2023 11:0035,402357,054,818293,834,27402,281,472
2Oct 11, 2023 10:5735,408361,185,684293,882,96402,293,760
3Oct 11, 2023 11:0035,426352,522,995294,034,40702,277,376
4Oct 11, 2023 11:0035,432361,612,483294,083,29202,289,664
5Oct 11, 2023 10:5735,441365,663,485294,160,82402,293,760
6Oct 11, 2023 10:5735,443345,980,915294,175,30602,281,472