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 listSep 8, 2023 14:16Kevin HeaveyKevin HeaveyScore: 47,166Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2023 14:1747,130458,346,041391,178,42902,220,032
2Sep 8, 2023 14:1647,132464,153,825391,195,93302,232,320
3Sep 8, 2023 14:1647,137467,664,633391,238,66402,232,320
4Sep 8, 2023 14:1747,152453,012,010391,358,40502,220,032
5Sep 8, 2023 14:1747,160458,646,071391,429,37002,228,224
6Sep 8, 2023 14:1747,162456,875,899391,448,04202,215,936
7Sep 8, 2023 14:1647,166452,985,004391,476,93302,224,128
8Sep 8, 2023 14:1647,167457,542,081391,483,88102,228,224
9Sep 8, 2023 14:1647,174464,296,867391,547,17502,232,320
10Sep 8, 2023 14:1647,186453,885,424391,642,96902,224,128
11Sep 8, 2023 14:1747,362457,349,312393,105,23402,220,032
12Sep 8, 2023 14:1747,443457,842,974393,780,97302,224,128