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, 2024 19:21Serge SmirnovSerge SmirnovError
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, 2024 19:1900000Error: expected "53681186465552496 ", got "53681186465526896 "
2Nov 10, 2024 19:2100000Error: expected "53692577544837773 ", got "53692574984837773 "
3Nov 10, 2024 19:2029,439272,212,622243,343,0001,001,0002,293,760
4Nov 10, 2024 19:2029,450265,551,043243,437,0001,001,0002,289,664
5Nov 10, 2024 19:2129,476272,177,408242,650,0001,997,0002,293,760
6Nov 10, 2024 19:2129,483271,171,932243,708,000998,0002,527,232
7Nov 10, 2024 19:2129,486274,861,962242,736,0001,997,0002,293,760
8Nov 10, 2024 19:2029,502270,618,596242,867,0001,998,0002,281,472