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 listOct 11, 2024 16:55Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 12, 2024 17:5000000Error: expected "53686089448897101 ", got "53686103964208405 "stderr
2Oct 11, 2024 16:554,39657,832,69334,463,0002,027,0002,535,424
3Oct 11, 2024 16:534,40159,353,60935,515,0001,014,0002,535,424
4Oct 11, 2024 16:554,40670,005,76634,542,0002,031,0002,301,952
5Oct 11, 2024 16:534,41662,317,91035,632,0001,018,0002,301,952
6Oct 11, 2024 16:554,41962,704,90036,674,00002,301,952
7Oct 11, 2024 16:534,44065,594,63434,860,0001,992,0002,301,952
8Oct 11, 2024 16:534,46058,025,03336,021,0001,000,0002,289,664
9Oct 11, 2024 16:534,46560,828,22435,056,0002,003,0002,531,328
10Oct 11, 2024 16:554,47257,192,04336,113,0001,003,0002,387,968
11Oct 11, 2024 16:554,47661,525,48136,146,0001,004,0002,531,328
12Oct 11, 2024 16:554,47859,944,22335,160,0002,009,0002,297,856
13Oct 11, 2024 16:534,48060,118,22536,181,0001,005,0002,531,328