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 5, 2024 17:09Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 5, 2024 17:0900000Error: expected "53688600645103993 ", got "1153710740 480556495 589614412 475370447 1123814244 1888690149 1166913911 1355324172 942444771 1612729092 337273797 771976775 1053289721 902451220 157612061 1589392487 828392847 2081381374 1610061418 129558331...