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 03:58Yuriy 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 03:5800000Error: expected "53690859346719171 ", got "53690859321119171 "
2Sep 12, 2022 03:5800000Error: expected "53679392281914977 ", got "53679366681914977 "
3Sep 12, 2022 04:037,28388,099,61357,424,0003,022,0002,396,160
4Sep 12, 2022 04:037,33484,595,12757,878,0002,993,0002,510,848
5Sep 12, 2022 04:037,35787,005,15759,059,0002,002,0002,428,928
6Sep 12, 2022 04:037,35882,662,48458,067,0003,003,0002,412,544
7Sep 12, 2022 04:037,36082,286,59955,081,0006,008,0002,457,600
8Sep 12, 2022 03:587,386112,326,19561,304,94002,220,032
9Sep 12, 2022 04:037,405114,761,42261,464,08502,215,936
10Sep 12, 2022 04:037,41493,776,96758,514,0003,026,0002,412,544
11Sep 12, 2022 04:037,44988,527,44959,835,0001,994,0002,338,816
12Sep 12, 2022 03:587,454120,229,52361,871,94302,183,168
13Sep 12, 2022 04:037,47986,023,40058,068,0004,004,0002,453,504
14Sep 12, 2022 04:037,542141,094,41462,601,33302,260,992
15Sep 12, 2022 04:037,54292,204,59858,564,0004,038,0002,269,184
16Sep 12, 2022 04:037,584134,767,32262,948,63102,236,416
17Sep 12, 2022 03:587,601130,448,20363,089,23202,211,840