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 16, 2024 19:56Matt 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
1Jun 16, 2024 19:5600000Error: expected "53687029512557925 ", got "53687043030989012 "
2Jun 16, 2024 19:5700000Error: expected "53683085641079096 ", got "53683096771459779 "
3Jun 16, 2024 19:5700000Error: expected "53689865770301863 ", got "53689932246086713 "
4Jun 16, 2024 19:5800000Error: expected "53682791410853575 ", got "53682809409547799 "
5Jun 16, 2024 20:0000000Error: expected "53682188445509302 ", got "53682234882564851 "
6Jun 16, 2024 19:585,232110,782,60143,426,79802,281,472
7Jun 16, 2024 19:585,244105,223,85443,528,93602,428,928
8Jun 16, 2024 20:015,248103,141,02043,555,44102,187,264
9Jun 16, 2024 20:015,253113,601,68343,603,94102,416,640
10Jun 16, 2024 20:015,260103,876,35643,654,65602,412,544
11Jun 16, 2024 19:585,270112,771,70943,739,65302,445,312