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 27, 2024 13:43GraceGraceScore: 6,995Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 13:436,93483,197,58457,553,00002,285,568
2May 27, 2024 13:436,93685,385,18256,556,0001,009,0002,285,568
3May 27, 2024 13:436,94181,718,32556,601,0001,010,0002,285,568
4May 27, 2024 13:436,94484,211,75357,636,00002,273,280
5May 27, 2024 13:436,95382,283,52756,702,0001,012,0002,273,280
6May 27, 2024 13:436,95382,821,21356,700,0001,012,0002,285,568
7May 27, 2024 13:436,96384,438,39655,797,0001,992,0002,285,568
8May 27, 2024 13:436,96483,431,56056,806,000996,0002,285,568
9May 27, 2024 13:436,96884,586,83355,837,0001,994,0002,285,568
10May 27, 2024 13:436,96983,655,93855,846,0001,994,0002,285,568
11May 27, 2024 13:436,97080,731,69055,857,0001,994,0002,265,088
12May 27, 2024 13:436,97392,379,46255,881,0001,995,0002,265,088
13May 27, 2024 13:436,97780,532,17455,915,0001,996,0002,265,088
14May 27, 2024 13:436,98082,377,64456,935,000998,0002,269,184
15May 27, 2024 13:436,98879,479,38657,003,0001,000,0002,285,568
16May 27, 2024 13:436,99584,458,17956,057,0002,002,0002,273,280
17May 27, 2024 13:437,04779,678,18257,478,0001,008,0002,285,568
18May 27, 2024 13:437,09879,679,23856,917,0001,997,0002,289,664
19May 27, 2024 13:437,762129,566,26364,421,74902,301,952
20May 27, 2024 13:437,784132,888,92364,608,45502,256,896
21May 27, 2024 13:437,832125,527,37265,006,45902,293,760
22May 27, 2024 13:437,836131,560,13065,038,97602,301,952
23May 27, 2024 13:437,853132,936,58965,176,49802,297,856
24May 27, 2024 13:437,872143,565,99165,335,87302,285,568
25May 27, 2024 13:438,48796,482,80369,435,0001,006,0002,285,568
26May 27, 2024 13:438,509100,133,34769,619,0001,008,0002,281,472
27May 27, 2024 13:438,52698,263,81368,775,0001,993,0002,285,568
28May 27, 2024 13:438,56098,529,56370,050,0001,000,0002,269,184
29May 27, 2024 13:438,57797,288,35269,181,0002,005,0002,273,280
30May 27, 2024 13:438,63195,073,04570,627,0001,008,0002,375,680