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 listAug 31, 2024 08:51matsuoka-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
1Sep 1, 2024 13:3700000Error: No answer to stdout. Died or killed?
2Sep 2, 2024 14:4100000Error: expected "53692256525199387 ", got "53692254104769139"
3Sep 2, 2024 14:4100000Error: No answer to stdout. Died or killed?
4Sep 2, 2024 14:4000000Error: expected "53691999226688125 ", got "94558105090227140"
5Sep 2, 2024 14:4000000Error: No answer to stdout. Died or killed?
6Sep 2, 2024 14:3900000Error: expected "53691619087703492 ", got "88871542496297997"
7Sep 2, 2024 14:3800000Error: expected "53693177566214300 ", got "53693175145784052"
8Sep 2, 2024 14:3800000Error: No answer to stdout. Died or killed?
9Sep 1, 2024 13:3900000Error: No answer to stdout. Died or killed?
10Sep 1, 2024 13:3800000Error: expected "53687975020112240 ", got "79578987779841240"
11Sep 1, 2024 13:3700000Error: expected "53685740886287597 ", got "79837023296870437"
12Sep 1, 2024 13:3700000Error: No answer to stdout. Died or killed?
13Aug 31, 2024 08:5400000Error: expected "53686880084189400 ", got "53686877663759152"
14Aug 31, 2024 08:5300000Error: No answer to stdout. Died or killed?
15Aug 31, 2024 08:5200000Error: No answer to stdout. Died or killed?
16Aug 31, 2024 08:5200000Error: expected "53688413095631553 ", got "69476431464639117"
17Aug 31, 2024 08:514,22060,770,46533,024,0002,001,0002,289,664
18Aug 31, 2024 08:514,23658,848,05134,156,0001,004,0002,322,432
19Aug 31, 2024 08:514,25266,168,20533,272,0002,016,0002,502,656