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, 2024 23:09Steve HanSteve HanError
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, 2024 23:1900000Error: expected "53681550012765965 ", got "53298188210404109"
2May 5, 2024 23:1700000Error: expected "53688683321452221 ", got "53314185660959421"
3May 5, 2024 23:1400000Error: expected "53687393648151803 ", got "53305278794730235"
4May 5, 2024 23:0900000Error: expected "53691404072516193 ", got "53691401509956193"
5May 5, 2024 23:129,771148,001,84781,101,84102,273,280
6May 5, 2024 23:269,796133,998,07381,303,85202,269,184
7May 5, 2024 23:129,827136,820,40581,563,05402,265,088
8May 5, 2024 23:119,827146,025,09681,567,72202,269,184
9May 5, 2024 23:109,828159,901,13981,570,39302,260,992
10May 5, 2024 23:099,830144,003,83381,587,41402,273,280
11May 5, 2024 23:129,830144,819,35081,591,66702,260,992
12May 5, 2024 23:119,830141,332,64381,588,35302,269,184
13May 5, 2024 23:269,831135,932,75181,601,23602,273,280
14May 5, 2024 23:269,834146,321,58281,618,25402,269,184
15May 5, 2024 23:139,834147,560,41181,620,12902,277,376
16May 5, 2024 23:119,834147,345,98881,623,87302,277,376
17May 5, 2024 23:129,836144,109,11681,638,74902,269,184
18May 5, 2024 23:109,837145,837,31581,648,36802,265,088
19May 5, 2024 23:1010,063142,096,58683,519,12402,277,376
20May 5, 2024 23:1310,083155,079,13983,685,31402,277,376
21May 5, 2024 23:1110,086142,782,92383,715,99302,265,088
22May 5, 2024 23:1010,086153,136,32983,714,96702,260,992
23May 5, 2024 23:1210,087169,670,21983,723,36802,281,472
24May 5, 2024 23:1010,126145,597,53784,044,39802,269,184
25May 5, 2024 23:1110,132144,687,25384,097,99602,265,088
26May 5, 2024 23:1010,133152,499,81884,105,89902,281,472
27May 5, 2024 23:1310,134161,238,07084,112,42602,277,376
28May 5, 2024 23:2710,134146,655,38484,116,21202,269,184
29May 5, 2024 23:2710,135166,189,12284,122,45202,269,184
30May 5, 2024 23:1210,137143,109,62484,139,49102,265,088
31May 5, 2024 23:0910,137150,258,21384,137,57302,269,184
32May 5, 2024 23:2710,140142,970,96784,161,59002,277,376
33May 5, 2024 23:0910,140142,691,39184,165,73002,281,472
34May 5, 2024 23:1110,142146,906,25884,178,38002,265,088