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 listApr 29, 2024 20:16Joad NacerJoad NacerScore: 7,943Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 20:167,782124,216,59564,594,64302,281,472
2Apr 29, 2024 20:167,788137,513,27864,639,88402,273,280
3Apr 29, 2024 20:167,790133,255,46964,653,72402,269,184
4Apr 29, 2024 20:167,92992,751,23764,813,000997,0002,265,088
5Apr 29, 2024 20:167,93890,693,17663,892,0001,996,0002,531,328
6Apr 29, 2024 20:167,93889,260,96163,889,0001,996,0002,265,088
7Apr 29, 2024 20:167,93990,537,51963,898,0001,996,0002,285,568
8Apr 29, 2024 20:167,94390,563,16963,933,0001,997,0002,260,992
9Apr 29, 2024 20:167,95491,088,27164,020,0002,000,0002,285,568
10Apr 29, 2024 20:167,96991,436,81164,142,0002,004,0002,367,488
11Apr 29, 2024 20:168,12091,561,53166,388,0001,005,0002,285,568
12Apr 29, 2024 20:168,84591,428,45972,409,0001,005,0002,269,184
13Apr 29, 2024 20:168,920103,222,14373,033,0001,000,0002,359,296
14Apr 29, 2024 20:169,044101,025,25873,061,0002,001,0002,285,568
15Apr 29, 2024 20:1611,100116,224,55891,127,0001,001,0002,269,184