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 listOct 23, 2024 15:30Serge SmirnovSerge SmirnovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 23, 2024 15:3000000Error: expected "53689664122013861 ", got "53689664119453861 "
2Oct 23, 2024 15:3000000Error: expected "53682849120236611 ", got "53682849119980611 "
3Oct 23, 2024 15:3029,470267,423,998242,609,0001,996,0002,359,296
4Oct 23, 2024 15:3029,483269,835,825242,712,0001,997,0002,289,664
5Oct 23, 2024 15:3029,487272,148,011243,747,000998,0002,289,664