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 listJun 6, 2024 12:03matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2024 12:0300000Error: expected "53690045166371204 ", got "61384873875236064 "stderr
2Jun 6, 2024 12:045,471107,442,66145,409,65202,232,320
3Jun 6, 2024 12:035,508118,001,00045,713,92602,224,128
4Jun 6, 2024 12:035,515102,817,65045,770,57802,228,224
5Jun 6, 2024 12:045,558107,675,98346,132,81702,236,416
6Jun 6, 2024 12:035,859118,887,14548,633,38602,359,296
7Jun 6, 2024 12:046,202129,307,54351,474,99702,232,320