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 listMar 6, 2024 09:30Matt StuchlikMatt StuchlikScore: 38,286Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 6, 2024 09:3138,101382,724,925316,238,43002,265,088
2Mar 6, 2024 09:3138,121389,561,291316,403,65602,260,992
3Mar 6, 2024 09:2938,141387,318,410316,566,81402,256,896
4Mar 6, 2024 09:3138,181391,319,479316,905,55002,265,088
5Mar 6, 2024 09:2938,181381,887,145316,902,36002,260,992
6Mar 6, 2024 09:2838,183387,502,787316,920,10702,260,992
7Mar 6, 2024 09:2838,193380,196,111316,999,55602,269,184
8Mar 6, 2024 09:2938,196378,701,782317,024,23502,256,896
9Mar 6, 2024 09:2838,238387,957,611317,379,08702,269,184
10Mar 6, 2024 09:2838,286400,373,362317,770,86202,265,088
11Mar 6, 2024 09:2838,311382,188,496317,981,24602,260,992
12Mar 6, 2024 09:2838,401399,926,038318,728,89202,269,184
13Mar 6, 2024 09:3140,488404,995,087336,049,07902,236,416
14Mar 6, 2024 09:3140,531405,293,226336,409,08502,252,800
15Mar 6, 2024 09:3141,136394,349,599341,431,17002,256,896
16Mar 6, 2024 09:3042,410410,955,242351,999,87302,228,224
17Mar 6, 2024 09:3042,428416,109,920352,154,03702,220,032
18Mar 6, 2024 09:3042,525417,444,326352,960,44002,220,032