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 4, 2022 17:33Robert BurkeRobert BurkeScore: 10,000Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2022 17:339,981106,660,99281,847,000998,0002,273,280
2Oct 4, 2022 17:339,982105,053,73080,858,0001,996,0002,424,832
3Oct 4, 2022 17:339,987105,316,72481,897,000998,0002,433,024
4Oct 4, 2022 17:339,988102,786,78880,901,0001,997,0002,428,928
5Oct 4, 2022 17:339,993102,602,17881,939,000999,0002,277,376
6Oct 4, 2022 17:339,993103,766,46481,939,000999,0002,424,832
7Oct 4, 2022 17:339,997105,778,48880,974,0001,999,0002,535,424
8Oct 4, 2022 17:3310,000106,063,01481,998,000999,0002,539,520
9Oct 4, 2022 17:3310,004102,243,81882,037,0001,000,0002,277,376
10Oct 4, 2022 17:3310,009103,549,46782,077,0001,000,0002,433,024
11Oct 4, 2022 17:3310,015106,057,68481,119,0002,002,0002,277,376
12Oct 4, 2022 17:3310,016105,169,22782,135,0001,001,0002,277,376
13Oct 4, 2022 17:3310,927140,470,25090,694,18702,301,952
14Oct 4, 2022 17:3310,937170,273,11990,777,17902,179,072
15Oct 4, 2022 17:3310,940161,807,57990,799,09302,174,976