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 27, 2024 04:32Steve HanSteve HanError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2024 04:3300000Error: expected "53683987703758138 ", got "53683987445198138 "
2Apr 27, 2024 04:3700000Error: expected "53689417280201838 ", got "53689417021641838 "
3Apr 27, 2024 04:3235,617363,430,803295,624,23502,285,568
4Apr 27, 2024 04:3835,657354,918,027295,954,56302,281,472
5Apr 27, 2024 04:3835,685384,903,572296,183,63202,293,760
6Apr 27, 2024 04:3235,695358,244,455296,268,46302,293,760
7Apr 27, 2024 04:3835,707365,104,001296,370,13502,285,568
8Apr 27, 2024 04:3235,741361,903,788296,652,08702,285,568