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 10, 2024 19:53Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2024 19:5100000Error: expected "53686787306607620 ", got "53686792340919102"stderr
2Oct 10, 2024 19:508,77096,327,91070,801,0001,994,0002,351,104
3Oct 10, 2024 19:538,77093,417,38870,794,0001,994,0002,351,104
4Oct 10, 2024 19:508,773102,748,29668,827,0003,989,0002,351,104
5Oct 10, 2024 19:538,79796,331,68070,011,0003,000,0002,363,392
6Oct 10, 2024 19:508,79998,740,63371,035,0002,000,0002,351,104
7Oct 10, 2024 19:538,89896,953,52771,857,0001,996,0002,342,912
8Oct 10, 2024 19:508,94296,426,77171,210,0003,008,0002,473,984
9Oct 10, 2024 19:538,94997,448,23172,273,0002,007,0002,306,048
10Oct 10, 2024 19:508,95697,754,03971,321,0003,013,0002,482,176
11Oct 10, 2024 19:538,97492,779,97972,475,0002,013,0002,482,176
12Oct 10, 2024 19:509,00896,457,70572,773,0001,993,0002,273,280
13Oct 10, 2024 19:539,249104,014,49276,765,00002,351,104