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 21: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 21:2200000Error: expected "53682702806039110 ", got "53682702777879110 "
2Jun 30, 2021 21:2100000Error: expected "53692232220662209 ", got "53692232220406209 "
3Jun 30, 2021 21:0500000Error: expected "53692623949546727 ", got "49445263883282407 "
4Jun 30, 2021 21:3014,251431,688,586118,281,25402,269,184
5Jun 30, 2021 21:1914,258438,643,885118,343,98502,240,512
6Jun 30, 2021 21:3014,260428,831,767118,354,36702,244,608
7Jun 30, 2021 21:3014,264426,293,818118,388,07302,273,280
8Jun 30, 2021 21:1914,277435,709,716118,501,73302,240,512
9Jun 30, 2021 21:1914,284430,466,802118,557,03002,269,184
10Jun 30, 2021 21:3014,776397,514,197121,640,000997,0002,260,992
11Jun 30, 2021 21:3014,778402,478,279121,664,000997,0002,260,992
12Jun 30, 2021 21:1914,778399,970,323120,661,0001,994,0002,260,992
13Jun 30, 2021 21:3014,779402,088,846120,675,0001,994,0002,260,992
14Jun 30, 2021 21:1914,781404,132,614121,684,000997,0002,260,992
15Jun 30, 2021 21:1914,782401,289,609120,693,0001,994,0002,392,064
16Jun 30, 2021 21:3014,783397,454,821120,703,0001,995,0002,523,136
17Jun 30, 2021 21:1914,787403,929,040120,735,0001,995,0002,260,992
18Jun 30, 2021 21:3014,788398,784,103120,743,0001,995,0002,260,992
19Jun 30, 2021 21:1914,789405,863,721120,756,0001,995,0002,392,064
20Jun 30, 2021 21:1914,789404,966,849120,757,0001,995,0002,400,256
21Jun 30, 2021 21:3014,791395,947,938120,766,0001,996,0002,392,064
22Jun 30, 2021 21:3014,796398,766,049121,805,000998,0002,392,064
23Jun 30, 2021 21:1914,797401,757,169121,813,000998,0002,523,136
24Jun 30, 2021 21:1914,798403,300,874120,829,0001,997,0002,527,232
25Jun 30, 2021 21:3014,807402,730,175121,902,000999,0002,260,992
26Jun 30, 2021 21:1914,814400,971,358120,955,0001,999,0002,400,256
27Jun 30, 2021 21:3014,841404,918,269122,179,0001,001,0002,260,992