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 30, 2021 22:19Yuriy 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 30, 2021 22:2300000Error: expected "53682986922445931 ", got "53682986922189931 "
2Jun 30, 2021 22:2000000Error: expected "53692802937534158 ", got "53692802932388558 "
3Jun 30, 2021 22:2000000Error: expected "53690161813756002 ", got "53690161811170402 "
4Jun 30, 2021 22:2000000Error: expected "53688337954209004 ", got "53688337951649004 "
5Jun 30, 2021 22:1900000Error: expected "53681508144864460 ", got "53681508144608460 "
6Jun 30, 2021 22:1400000Error: expected "53680645726062990 ", got "53680645700462990 "
7Jun 30, 2021 22:1912,491384,780,554101,682,0001,993,0002,387,968
8Jun 30, 2021 22:1912,499386,984,991102,742,000997,0002,486,272
9Jun 30, 2021 22:1912,499381,727,119101,748,0001,995,0002,396,160
10Jun 30, 2021 22:1912,501380,134,019102,761,000997,0002,260,992
11Jun 30, 2021 22:1912,504381,584,616101,789,0001,995,0002,260,992
12Jun 30, 2021 22:1912,506382,985,686102,805,000998,0002,260,992
13Jun 30, 2021 22:1912,510379,458,437101,839,0001,996,0002,523,136
14Jun 30, 2021 22:1912,516380,179,894101,884,0001,997,0002,260,992
15Jun 30, 2021 22:1912,521381,587,357102,925,000999,0002,387,968
16Jun 30, 2021 22:2313,299411,163,972110,378,70502,240,512
17Jun 30, 2021 22:1513,299420,905,696110,381,10402,240,512
18Jun 30, 2021 22:1513,302434,147,504110,408,40802,273,280
19Jun 30, 2021 22:1913,302417,226,918110,405,24002,244,608
20Jun 30, 2021 22:1913,302446,465,318110,404,31202,244,608
21Jun 30, 2021 22:1913,304418,959,674110,420,88202,240,512
22Jun 30, 2021 22:2313,305418,657,198110,432,57902,244,608
23Jun 30, 2021 22:2313,311425,014,389110,477,94202,244,608
24Jun 30, 2021 22:1513,317426,507,603110,530,49802,269,184
25Jun 30, 2021 22:1913,390429,663,431111,138,04902,240,512
26Jun 30, 2021 22:1913,394426,375,979111,172,94402,240,512
27Jun 30, 2021 22:1913,405417,300,498111,265,17102,265,088