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 listJan 26, 2023 15:04unsatcoreunsatcoreScore: 12,087Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 26, 2023 15:0611,526159,183,35195,668,13002,277,376
2Jan 26, 2023 15:0611,645158,596,06496,655,07402,273,280
3Jan 26, 2023 15:0611,666149,822,68296,831,93202,265,088
4Jan 26, 2023 15:0411,728159,964,87097,345,35202,273,280
5Jan 26, 2023 15:0411,752156,344,87797,544,65102,289,664
6Jan 26, 2023 15:0411,771158,072,38097,700,76502,277,376
7Jan 26, 2023 15:0612,003125,492,55799,623,00002,260,992
8Jan 26, 2023 15:0612,025126,966,03696,815,0002,994,0002,531,328
9Jan 26, 2023 15:0612,028123,297,62096,836,0002,994,0002,269,184
10Jan 26, 2023 15:0612,037125,161,73695,915,0003,996,0002,531,328
11Jan 26, 2023 15:0612,073123,128,69396,194,0004,008,0002,519,040
12Jan 26, 2023 15:0612,086128,205,06798,311,0002,006,0002,269,184
13Jan 26, 2023 15:0612,087121,338,72298,317,0002,006,0002,531,328
14Jan 26, 2023 15:0612,142132,293,94999,781,000997,0002,269,184
15Jan 26, 2023 15:0612,239130,168,703101,580,00002,269,184
16Jan 26, 2023 15:0412,698131,189,519104,391,0001,003,0002,269,184
17Jan 26, 2023 15:0412,781130,745,011104,079,0002,001,0002,269,184
18Jan 26, 2023 15:0412,786129,457,143104,118,0002,002,0002,531,328
19Jan 26, 2023 15:0412,793125,035,711104,176,0002,003,0002,273,280
20Jan 26, 2023 15:0412,798128,028,916105,222,0001,002,0002,265,088
21Jan 26, 2023 15:0412,833131,029,355103,498,0003,014,0002,269,184
22Jan 26, 2023 15:0412,885136,173,944104,948,0001,999,0002,531,328
23Jan 26, 2023 15:0412,886129,317,709104,957,0001,999,0002,260,992
24Jan 26, 2023 15:0413,063134,736,509107,419,0001,003,0002,527,232