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 listAug 30, 2023 12:16matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 30, 2023 12:1600000Error: expected "53692245146063907 ", got "53692219546063907 "stderr
2Aug 30, 2023 12:167,418115,195,03661,565,82002,269,184
3Aug 30, 2023 12:167,467124,231,89061,976,60802,252,800
4Aug 30, 2023 12:167,486128,643,87462,133,62002,265,088
5Aug 30, 2023 12:167,56791,344,56760,809,0001,993,0002,490,368
6Aug 30, 2023 12:167,57691,859,74860,882,0001,996,0002,371,584
7Aug 30, 2023 12:167,60184,487,91261,085,0002,002,0002,371,584
8Aug 30, 2023 12:167,84388,285,74363,092,0002,002,0002,490,368
9Aug 30, 2023 12:167,87090,406,93763,308,0002,009,0002,490,368
10Aug 30, 2023 12:167,87387,491,73763,332,0002,010,0002,490,368
11Aug 30, 2023 12:167,87593,175,27964,355,0001,005,0002,371,584
12Aug 30, 2023 12:167,89692,027,12664,527,0001,008,0002,371,584
13Aug 30, 2023 12:167,93197,614,55163,837,0001,994,0002,469,888
14Aug 30, 2023 12:167,95489,257,06464,016,0002,000,0002,490,368
15Aug 30, 2023 12:167,96593,194,55364,107,0002,003,0002,482,176
16Aug 30, 2023 12:168,01492,379,31665,512,0001,007,0002,490,368