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 14:12GraceGraceScore: 7,004Success
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 14:136,89780,467,77856,244,0001,004,0002,531,328
2May 27, 2024 14:136,90483,353,98655,295,0002,010,0002,285,568
3May 27, 2024 14:126,96383,838,13155,802,0001,992,0002,285,568
4May 27, 2024 14:136,96684,620,14555,821,0001,993,0002,273,280
5May 27, 2024 14:136,96683,994,63156,822,000996,0002,277,376
6May 27, 2024 14:126,96982,339,95455,852,0001,994,0002,285,568
7May 27, 2024 14:126,96986,059,95655,850,0001,994,0002,269,184
8May 27, 2024 14:126,97389,305,05955,883,0001,995,0002,285,568
9May 27, 2024 14:136,97981,302,63955,930,0001,997,0002,285,568
10May 27, 2024 14:126,98581,424,43355,975,0001,999,0002,285,568
11May 27, 2024 14:136,98881,769,66755,999,0001,999,0002,285,568
12May 27, 2024 14:136,98983,608,56756,009,0002,000,0002,265,088
13May 27, 2024 14:126,99378,750,94756,037,0002,001,0002,285,568
14May 27, 2024 14:127,00081,627,06056,100,0002,003,0002,260,992
15May 27, 2024 14:127,00380,947,99856,121,0002,004,0002,285,568
16May 27, 2024 14:137,00486,861,04258,132,00002,285,568
17May 27, 2024 14:137,01380,410,03956,205,0002,007,0002,285,568
18May 27, 2024 14:127,01790,668,31356,235,0002,008,0002,265,088
19May 27, 2024 14:137,02886,598,07256,318,0002,011,0002,387,968
20May 27, 2024 14:127,03580,970,67157,386,0001,006,0002,519,040
21May 27, 2024 14:127,04280,323,93857,441,0001,007,0002,285,568
22May 27, 2024 14:137,08487,854,71357,801,000996,0002,277,376
23May 27, 2024 14:137,09081,728,30757,853,000997,0002,285,568
24May 27, 2024 14:127,20592,889,58258,809,000996,0002,265,088
25May 27, 2024 14:137,551123,116,52862,676,52602,301,952
26May 27, 2024 14:127,617122,820,39063,216,98402,293,760
27May 27, 2024 14:127,654120,940,26063,527,65902,285,568
28May 27, 2024 14:137,657121,908,92563,553,18402,289,664
29May 27, 2024 14:137,694143,415,05063,861,09702,289,664
30May 27, 2024 14:127,719125,296,67664,068,71902,293,760