Problems Description
<pre class="line mt-10 q-content">一辆卡车欲穿过1000km的沙漠,卡车耗油为1L/km,卡车总载油能力为500L,显然卡车装一次油是过不了沙漠的。因此司机必须设法</pre> <pre class="line mt-10 q-content">在沿途建立若干items贮油点,使卡车能顺利穿越沙漠,试问司机如何建立这些贮油点?每一贮油点应存多少油,才能使卡车以消耗最</pre> <pre class="line mt-10 q-content">少汽油的代价通过沙漠(结果保留小数点后10位)?</pre>
Input格式
本题只有一items测试点,并且没有输入File。
Output格式
No. Distance Oil<br /> 0 xxxxxxx xxxxxxx<br /> 1<span> xxxxxxx xxxxxxx</span><br /> 2<span> xxxxxxx xxxxxxx</span><br /> 3<span> xxxxxxx xxxxxxx</span><br /> 4<span> xxxxxxx xxxxxxx</span><br /> ... ... ...
Sample
Sample Input 1
Sample Output 1
No. Distance Oil
0 0.0000000000 3881.3630814000
1 22.4331224330 3500.0000000000
2 60.8946608950 3000.0000000000
3 106.3492063500 2500.0000000000
4 161.9047619000 2000.0000000000
5 233.3333333300 1500.0000000000
6 333.3333333300 1000.0000000000
7 500.0000000000 500.0000000000
8 1000.0000000000 0.0000000000
注: writeln(' No. Distance Oil');
相关的数据间场宽与小数位points别为: No. : 4 Distance: 20: 10 Oil: 20 : 10);
Submit Code
请先Login后Submit
🤖 AI 解题助手
OpenRouter
就绪