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 listAug 29, 2023 12:04Yuriy 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
1Aug 29, 2023 12:0800000Error: expected "53685585058570543 ", got "709578372672047 "stderr
2Aug 29, 2023 12:0700000Error: expected "53679678759724173 ", got "53679653159724173 "stderr
3Aug 29, 2023 12:047,14081,844,91357,256,0002,008,0002,433,024
4Aug 30, 2023 14:587,160129,956,63059,425,99702,199,552
5Aug 29, 2023 12:047,20587,271,47357,810,0001,993,0002,371,584
6Aug 29, 2023 12:047,206128,256,19359,808,00002,215,936
7Aug 29, 2023 12:047,20689,656,32158,814,000996,0002,498,560
8Aug 29, 2023 12:047,211118,690,54759,853,36902,183,168
9Aug 30, 2023 14:587,223122,469,09459,954,04702,228,224
10Aug 29, 2023 12:047,22780,371,93054,989,0004,999,0002,347,008
11Aug 29, 2023 12:047,27590,202,83958,369,0002,012,0002,289,664
12Aug 29, 2023 12:077,283132,557,67660,448,98002,199,552
13Aug 29, 2023 12:047,30091,340,06157,558,0003,029,0002,359,296
14Aug 29, 2023 12:047,302123,614,24860,605,61602,207,744
15Aug 29, 2023 12:047,33091,021,25558,841,0001,994,0002,449,408
16Aug 30, 2023 14:587,334131,680,31860,872,31402,224,128
17Aug 29, 2023 12:077,336118,070,32760,887,40202,179,072
18Aug 29, 2023 12:077,338124,186,50760,908,84902,256,896
19Aug 29, 2023 12:047,35889,879,49058,065,0003,003,0002,297,856
20Aug 29, 2023 12:047,72085,265,77859,074,0005,006,0002,277,376