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 7, 2024 07:56matsuoka-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 7, 2024 07:5600000Error: expected "53682987607336805 ", got "60309719879302530"stderr
2Jun 7, 2024 07:5600000Error: expected "53691836272196260 ", got "90291520004641740"stderr
3Jun 7, 2024 07:5700000Error: expected "53689206525677345 ", got "67183857538072424"stderr
4Jun 7, 2024 07:575,411112,630,17544,912,49902,240,512
5Jun 7, 2024 07:575,412113,422,54944,921,41702,248,704
6Jun 7, 2024 07:575,452115,852,78545,247,83402,236,416