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 11, 2024 14:27Joad 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 11, 2024 14:2600000Error: expected "53679735383971166 ", got "53679754845958005 "stderr
2Oct 11, 2024 14:2700000Error: expected "53680572057599955 ", got "53680578689917127 "stderr
3Oct 11, 2024 14:2800000Error: expected "53692171476418534 ", got "53692186928087352 "stderr
4Oct 11, 2024 14:274,44357,777,81933,885,0002,989,0002,297,856
5Oct 11, 2024 14:274,45158,822,42633,945,0002,995,0002,297,856
6Oct 11, 2024 14:274,45161,512,74335,948,000998,0002,301,952
7Oct 11, 2024 14:274,45363,824,88234,959,0001,997,0002,301,952
8Oct 11, 2024 14:274,45559,578,81034,975,0001,998,0002,297,856
9Oct 11, 2024 14:274,45561,297,37534,980,0001,998,0002,351,104
10Oct 11, 2024 14:274,46563,385,08434,058,0003,005,0002,351,104
11Oct 11, 2024 14:274,47063,732,74435,092,0002,005,0002,351,104
12Oct 11, 2024 14:274,47258,378,82434,107,0003,009,0002,351,104
13Oct 11, 2024 14:274,51362,481,48635,433,0002,024,0002,301,952
14Oct 11, 2024 14:274,52668,197,85636,548,0001,015,0002,351,104
15Oct 11, 2024 14:274,55261,227,69735,796,0001,988,0002,392,064