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 8, 2024 07:08matsuoka-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 8, 2024 07:0900000Error: expected "53692061803589499 ", got "76734557290650549"
2Jun 8, 2024 07:0900000Error: expected "53685640653957893 ", got "80714353014661773"
3Jun 8, 2024 07:085,098119,198,04442,312,49202,252,800
4Jun 8, 2024 07:095,098106,993,03742,314,20102,260,992
5Jun 8, 2024 07:095,118102,943,57042,483,16902,256,896
6Jun 8, 2024 07:085,145108,325,24442,702,40402,252,800
7Jun 8, 2024 07:085,148103,385,11342,728,75402,256,896
8Jun 8, 2024 07:095,179104,678,39342,985,73402,260,992