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 10, 2024 19:24Matt StuchlikMatt StuchlikScore: 20,170Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2024 19:2419,079215,272,875158,354,28902,281,472
2Apr 10, 2024 19:2419,094222,797,090158,477,14102,277,376
3Apr 10, 2024 19:2420,152189,750,624166,263,0001,001,0002,277,376
4Apr 10, 2024 19:2420,156191,583,023166,295,0001,001,0002,269,184
5Apr 10, 2024 19:2420,159197,158,679166,317,0001,001,0002,265,088
6Apr 10, 2024 19:2420,169192,204,795166,403,0001,002,0002,265,088
7Apr 10, 2024 19:2420,170188,724,955167,415,00002,285,568
8Apr 10, 2024 19:2420,180194,042,167166,489,0001,002,0002,273,280
9Apr 10, 2024 19:2420,184199,973,015166,523,0001,003,0002,285,568
10Apr 10, 2024 19:2420,208195,238,207166,725,000998,0002,285,568
11Apr 10, 2024 19:2420,230191,844,726165,908,0001,998,0002,269,184
12Apr 10, 2024 19:2420,273235,556,232168,266,43302,289,664