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 4, 2024 21:17GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 21:1800000Error: expected "53682828790238268 ", got "53682833078651964 "
2Jun 4, 2024 21:175,240111,905,14043,493,72002,281,472
3Jun 4, 2024 21:185,244114,773,68343,527,65602,293,760
4Jun 4, 2024 21:185,247111,690,34543,550,76102,297,856
5Jun 4, 2024 21:185,250116,705,80643,575,80202,289,664
6Jun 4, 2024 21:185,253108,733,54643,599,60402,281,472
7Jun 4, 2024 21:175,254103,033,84543,610,59102,289,664
8Jun 4, 2024 21:175,255101,734,35743,613,98302,289,664
9Jun 4, 2024 21:185,267128,732,76543,712,35902,289,664
10Jun 4, 2024 21:185,296111,344,87443,954,07802,293,760