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 28, 2021 19:50Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2021 19:5000000Error: expected "53687102419120839 ", got "53687102418864839 "
2Jun 28, 2021 19:5000000Error: expected "53688495361328725 ", got "53688492801328725 "
3Jun 28, 2021 19:4913,192385,496,579108,493,0001,004,0002,260,992
4Jun 28, 2021 19:4913,193386,777,150108,498,0001,004,0002,387,968
5Jun 28, 2021 19:4913,199386,358,719108,546,0001,005,0002,260,992
6Jun 28, 2021 19:4913,202392,732,062108,577,000996,0002,260,992
7Jun 28, 2021 19:4913,210383,941,119108,650,000996,0002,396,160
8Jun 28, 2021 19:4913,212389,884,401108,663,000996,0002,260,992
9Jun 28, 2021 19:4913,215386,066,967109,687,00002,523,136
10Jun 28, 2021 19:4913,215387,123,067108,684,000997,0002,260,992
11Jun 28, 2021 19:4913,218391,071,354108,710,000997,0002,260,992
12Jun 28, 2021 19:5013,346386,455,607108,780,0001,995,0002,392,064
13Jun 28, 2021 19:5013,353388,728,773108,834,0001,996,0002,260,992
14Jun 28, 2021 19:5013,355387,433,331109,848,000998,0002,260,992
15Jun 28, 2021 19:5013,367387,883,778109,948,000999,0002,392,064
16Jun 28, 2021 19:5013,369393,743,212108,967,0001,999,0002,392,064
17Jun 28, 2021 19:5013,375389,897,372109,009,0002,000,0002,387,968
18Jun 28, 2021 19:5013,378393,665,135110,034,0001,000,0002,260,992
19Jun 28, 2021 19:5013,378390,494,492110,036,0001,000,0002,260,992
20Jun 28, 2021 19:5013,394387,824,865110,170,0001,001,0002,523,136
21Jun 28, 2021 19:4913,491411,020,904111,971,53402,240,512
22Jun 28, 2021 19:4913,495412,538,477112,010,87502,256,896
23Jun 28, 2021 19:4913,524427,973,435112,248,62102,240,512
24Jun 28, 2021 19:5013,566421,382,011112,598,88702,265,088
25Jun 28, 2021 19:5013,568420,944,587112,611,36702,240,512
26Jun 28, 2021 19:5013,579427,626,513112,705,17802,244,608