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 03:54matsuoka-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 03:5400000Error: expected "53682326034024543 ", got "7625691 5982707 5982481 5980336 4695182 4693599 4691939 3681637 598265 597986 597964 470001 469730 469563 469314 469002 468611 369587 368308 367826 59979 59893 59817 47054 46953 46902 46886 46870 46860 46847 4...stderr