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 12:37Berk 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 12:3600000Error: expected "53689788916156548 ", got " 754 53689788916156548"
2Jul 4, 2023 12:3788,741796,584,932736,553,82402,269,184
3Jul 4, 2023 12:3788,743807,245,296736,566,83402,256,896
4Jul 4, 2023 12:3788,843791,513,328737,397,32802,269,184
5Jul 4, 2023 12:3888,929802,387,872738,109,45402,220,032
6Jul 4, 2023 12:3888,997803,267,889738,674,50502,215,936
7Jul 4, 2023 12:3889,030807,720,073738,945,08202,215,936
8Jul 4, 2023 12:3889,066804,945,133739,251,36702,301,952
9Jul 4, 2023 12:3889,424801,563,439742,221,76902,293,760
10Jul 4, 2023 12:3789,614816,424,584743,795,67802,293,760
11Jul 4, 2023 12:0589,631805,280,850743,935,06402,297,856
12Jul 4, 2023 12:0589,651808,565,113744,102,29102,297,856
13Jul 4, 2023 12:3789,655811,221,458744,138,72402,195,456
14Jul 4, 2023 12:3789,665809,614,267744,216,41102,174,976
15Jul 4, 2023 12:3789,693815,969,924744,454,14302,199,552
16Jul 4, 2023 12:3789,695825,954,669744,464,82802,297,856
17Jul 4, 2023 12:3789,710801,510,523744,590,81402,203,648
18Jul 4, 2023 12:3889,728814,165,184744,746,11602,297,856
19Jul 4, 2023 12:0589,753814,104,914744,948,88102,256,896
20Jul 4, 2023 12:3790,484814,154,184751,018,16202,207,744
21Jul 4, 2023 12:3790,507822,271,899751,209,58302,220,032
22Jul 4, 2023 12:3790,572817,207,376751,745,38102,220,032