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 listJul 1, 2021 12:06mdzomdzoScore: 149,162Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 1, 2021 11:25148,8581,316,017,2011,235,524,73002,232,320
2Jul 1, 2021 11:25148,9861,295,812,0101,236,585,62802,236,416
3Jul 1, 2021 12:06149,0241,293,782,6161,236,898,71302,244,608
4Jul 1, 2021 12:06149,1621,312,202,1661,238,048,60202,236,416
5Jul 1, 2021 12:06149,7841,311,621,8891,243,205,04302,236,416
6Jul 1, 2021 11:25151,6331,317,775,6641,258,551,74302,232,320