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 listJul 4, 2023 11:00Berk Emre SarıbaşBerk Emre SarıbaşError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2023 10:5800000Error: expected "53682321114866912 ", got "409874334900142"
2Jul 4, 2023 10:5800000Error: expected "53680654262255035 ", got "1023781469541196"
3Jul 4, 2023 10:5800000Error: expected "53690053651933326 ", got "51216977152254037"
4Jul 4, 2023 10:5900000Error: expected "53683978200592486 ", got "52236795894718397"
5Jul 4, 2023 11:0000000Error: expected "53681051644069798 ", got "53258352814415524"
6Jul 4, 2023 11:00223,6581,924,847,5001,856,363,55702,289,664
7Jul 4, 2023 11:00224,1131,933,936,7311,860,136,04202,281,472
8Jul 4, 2023 11:00230,7421,987,433,8241,915,157,09402,281,472