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, 2024 11:58matsuoka-601matsuoka-601Error
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, 2024 15:5200000Error: expected "53688122547649574 ", got "53688122547647014"
2Sep 12, 2024 15:5000000Error: expected "53682728490191432 ", got "53682725930191432"
3Sep 12, 2024 12:0100000Error: expected "53685616786173915 ", got "53685614226173915"
4Sep 12, 2024 12:0000000Error: expected "53692221139562016 ", got "53692221113962016"
5Sep 12, 2024 11:5800000Error: expected "53681767928432749 ", got "53681765368432749"
6Sep 12, 2024 15:516,04377,060,90849,154,0001,003,0002,269,184
7Sep 12, 2024 15:516,04376,832,74349,152,0001,003,0002,269,184
8Sep 12, 2024 12:556,04573,180,96748,167,0002,006,0002,527,232
9Sep 12, 2024 11:596,05076,198,63449,209,0001,004,0002,412,544
10Sep 12, 2024 11:596,05978,735,01748,280,0002,011,0002,269,184
11Sep 12, 2024 15:526,06976,303,38849,367,0001,007,0002,408,448
12Sep 12, 2024 12:016,07079,132,15649,371,0001,007,0002,420,736
13Sep 12, 2024 12:016,07374,205,47150,405,00002,269,184
14Sep 12, 2024 15:526,07372,667,09849,400,0001,008,0002,506,752
15Sep 12, 2024 11:586,07974,747,18550,459,00002,269,184
16Sep 12, 2024 11:586,08873,397,55750,529,00002,408,448
17Sep 12, 2024 15:516,09981,625,15949,613,0001,012,0002,269,184
18Sep 12, 2024 12:016,10576,904,11249,656,0001,013,0002,416,640
19Sep 12, 2024 15:516,12080,143,71148,805,0001,992,0002,408,448
20Sep 12, 2024 11:586,12179,224,57048,813,0001,992,0002,412,544
21Sep 12, 2024 15:516,12377,830,45248,828,0001,993,0002,531,328
22Sep 12, 2024 15:526,13173,892,33248,892,0001,995,0002,531,328
23Sep 12, 2024 11:596,15574,520,69449,080,0002,003,0002,269,184
24Sep 12, 2024 12:556,19278,866,67849,379,0002,015,0002,408,448
25Sep 12, 2024 12:556,19577,552,94150,408,0001,008,0002,269,184
26Sep 12, 2024 15:516,20982,543,02551,531,00002,531,328
27Sep 12, 2024 15:506,50276,668,63547,969,0005,996,0002,322,432
28Sep 12, 2024 15:506,63883,456,46948,081,0007,011,0002,330,624
29Sep 12, 2024 15:506,67482,388,61449,349,0006,042,0002,363,392