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 03:16Steve 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 03:1500000Error: expected "53692977753342993 ", got "53692977727717393 "
2Apr 27, 2024 03:1600000Error: expected "53690842482407524 ", got "53690839922151524 "
3Apr 27, 2024 03:1652,192493,030,940433,197,10102,297,856
4Apr 27, 2024 03:1652,207503,889,452433,315,19502,301,952
5Apr 27, 2024 03:1652,284492,122,895433,960,12102,301,952