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 listSep 12, 2022 04:02Yuriy 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
1Sep 12, 2022 04:0200000Error: expected "53686683596064276 ", got "53686683596064020 "
2Sep 12, 2022 04:0200000Error: expected "53692203822337129 ", got "53692203796737129 "
3Sep 12, 2022 04:027,06489,106,18655,603,0003,032,0002,301,952
4Sep 12, 2022 04:027,12381,867,65356,115,0003,006,0002,453,504
5Sep 12, 2022 04:027,20888,654,24158,815,0001,014,0002,392,064
6Sep 12, 2022 04:027,21384,716,37955,874,0003,991,0002,359,296
7Sep 12, 2022 04:027,21685,250,53355,899,0003,992,0002,408,448
8Sep 12, 2022 04:027,22288,300,56956,947,0002,997,0002,404,352
9Sep 12, 2022 04:027,22988,463,16357,002,0003,000,0002,453,504
10Sep 12, 2022 04:027,270124,259,38560,343,21802,183,168
11Sep 12, 2022 04:027,278126,980,04560,405,91802,232,320
12Sep 12, 2022 04:027,303123,742,11960,615,75902,289,664
13Sep 12, 2022 04:027,32387,110,00158,791,0001,992,0002,392,064
14Sep 12, 2022 04:027,32488,708,79755,809,0004,982,0002,510,848