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 listMay 5, 2021 19:17Yuriy 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
1May 5, 2021 19:1700000exit with code 1: cannot delete cgroup: Cgroup has not been created
2May 5, 2021 19:1623,057216,727,810190,373,0001,001,0002,260,992
3May 5, 2021 19:1623,060216,572,249191,398,00002,260,992
4May 5, 2021 19:1723,063215,176,772190,423,0001,002,0002,260,992
5May 5, 2021 19:1623,066215,298,366190,445,0001,002,0002,392,064
6May 5, 2021 19:1623,067220,985,838191,454,00002,387,968
7May 5, 2021 19:1623,068219,065,328190,465,0001,002,0002,260,992
8May 5, 2021 19:1623,068216,073,362190,460,0001,002,0002,387,968
9May 5, 2021 19:1723,070216,524,956190,483,0001,002,0002,260,992
10May 5, 2021 19:1723,074220,084,219191,517,00002,260,992
11May 5, 2021 19:1723,075222,119,271191,524,00002,396,160
12May 5, 2021 19:1623,085220,229,453191,602,00002,387,968
13May 5, 2021 19:1723,088224,778,044188,638,0002,994,0002,260,992
14May 5, 2021 19:1723,101218,803,603188,745,0002,995,0002,260,992
15May 5, 2021 19:1723,101218,712,044190,739,000998,0002,260,992
16May 5, 2021 19:1723,102215,864,557190,751,000998,0002,396,160
17May 5, 2021 19:1623,102218,117,827188,749,0002,996,0002,392,064
18May 5, 2021 19:1723,103220,982,270189,761,0001,997,0002,387,968
19May 5, 2021 19:1623,103218,321,330189,755,0001,997,0002,383,872