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 listNov 10, 2023 10:45matsuoka-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
1Nov 10, 2023 10:4500000Error: expected "53682030374436983 ", got "53682004774436983 "stderr
2Nov 10, 2023 10:4600000Error: expected "53688033094976533 ", got "53688007494976533 "stderr
3Nov 10, 2023 10:467,430132,447,62961,672,01002,236,416
4Nov 10, 2023 10:467,498121,943,85562,231,33502,252,800
5Nov 10, 2023 10:467,534142,635,67862,529,46602,252,800