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 listJul 30, 2022 16:04Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2022 16:0400000Error: expected "53680552592616605 ", got "53680552592893919 "
2Jul 30, 2022 16:0400000Error: expected "53690796752498218 ", got "53690796752776336 "
3Jul 30, 2022 16:0500000Error: expected "53691648658979701 ", got "53691648659257079 "
4Jul 30, 2022 16:0500000Error: expected "53688088994404083 ", got "53688088994681980 "
5Jul 30, 2022 16:0500000Error: expected "53689415123931430 ", got "53689415124243137 "