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 listDec 5, 2022 15:28Yuriy 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
1Dec 5, 2022 15:2900000Error: expected "53687882777645608 ", got "53687857177645608 "
2Dec 5, 2022 15:2900000Error: expected "53679427568093330 ", got "53679401968093330 "
3Dec 5, 2022 15:2900000Error: expected "53691672546546183 ", got "53691646946546183 "
4Dec 5, 2022 15:287,05588,144,26055,529,0003,028,0002,408,448
5Dec 5, 2022 15:287,06389,710,70855,589,0003,032,0002,383,872
6Dec 5, 2022 15:287,08587,035,20353,819,0004,983,0002,519,040
7Dec 5, 2022 15:287,08684,146,54355,826,0002,990,0002,293,760
8Dec 5, 2022 15:287,09886,883,17455,922,0002,995,0002,306,048
9Dec 5, 2022 15:287,13080,198,91756,171,0003,009,0002,375,680
10Dec 5, 2022 15:287,16686,903,05155,442,0004,032,0002,404,352
11Dec 5, 2022 15:287,17988,017,98452,513,0007,069,0002,273,280
12Dec 5, 2022 15:287,20785,396,29154,833,0004,984,0002,367,488
13Dec 5, 2022 15:307,364116,557,90961,121,86902,203,648
14Dec 5, 2022 15:287,471124,896,20562,012,52002,306,048
15Dec 5, 2022 15:307,476125,821,32662,049,31502,211,840
16Dec 5, 2022 15:307,477122,259,16262,056,65302,269,184
17Dec 5, 2022 15:287,512151,177,96462,350,21202,215,936
18Dec 5, 2022 15:287,516115,218,67062,379,71602,232,320