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 listDec 14, 2024 13:18MatthiasMatthiasScore: 23,600Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2024 21:238,654101,921,61769,837,0001,995,0002,285,568
2Dec 11, 2024 21:238,66298,732,68369,897,0001,997,0002,289,664
3Dec 11, 2024 21:238,66498,905,11369,914,0001,997,0002,285,568
4Dec 11, 2024 21:238,67193,568,12569,969,0001,999,0002,379,776
5Dec 11, 2024 21:238,67497,272,58069,998,0001,999,0002,285,568
6Dec 11, 2024 21:238,80995,300,88671,113,0002,003,0002,363,392
7Dec 14, 2024 13:4623,412240,502,224191,330,0002,989,0002,256,896
8Dec 14, 2024 13:4623,600242,733,312190,882,0004,996,0002,273,280
9Dec 14, 2024 13:3223,775241,823,585192,346,0004,983,0002,523,136
10Dec 14, 2024 13:3223,793250,192,348194,486,0002,992,0002,265,088
11Dec 14, 2024 13:1823,872243,604,697194,156,0003,982,0002,265,088
12Dec 14, 2024 13:1823,890234,062,835193,333,0004,957,0002,273,280
13Dec 14, 2024 13:4623,896242,789,235193,352,0004,983,0002,260,992
14Dec 14, 2024 13:1823,911246,376,966194,475,0003,989,0002,523,136
15Dec 14, 2024 13:3224,114235,358,151197,160,0002,987,0002,277,376