0_0_31656257_31568.cpp:1:1: error: stray '\314' in program
题意:一叠卡片,用一种摆法,要求每张卡片短边与桌檐平行,并让他们超出桌檐尽量多,问能超出桌檐多少。
^
0_0_31656257_31568.cpp:1:1: error: stray '\342' in program
0_0_31656257_31568.cpp:1:1: error: stray '\322' in program
0_0_31656257_31568.cpp:1:1: error: stray '\342' in program
0_0_31656257_31568.cpp:1:1: error: stray '\243' in program
0_0_31656257_31568.cpp:1:1: error: stray '\272' in program
0_0_31656257_31568.cpp:1:1: error: stray '\322' in program
0_0_31656257_31568.cpp:1:1: error: stray '\273' in program
0_0_31656257_31568.cpp:1:1: error: stray '\265' in program
0_0_31656257_31568.cpp:1:1: error: stray '\376' in program
0_0_31656257_31568.cpp:1:1: error: stray '\277' in program
0_0_31656257_31568.cpp:1:1: error: stray '\250' in program
0_0_31656257_31568.cpp:1:1: error: stray '\306' in program
0_0_31656257_31568.cpp:1:1: error: stray '\254' in program
0_0_31656257_31568.cpp:1:1: error: stray '\243' in program
0_0_31656257_31568.cpp:1:1: error: stray '\254' in program
0_0_31656257_31568.cpp:1:1: error: stray '\323' in program
0_0_31656257_31568.cpp:1:1: error: stray '\303' in program
0_0_31656257_31568.cpp:1:1: error: stray '\322' in program
0_0_31656257_31568.cpp:1:1: error: stray '\273' in program
0_0_31656257_31568.cpp:1:1: error: stray '\326' in program
0_0_31656257_31568.cpp:1:1: error: stray '\326' in program
0_0_31656257_31568.cpp:1:1: error: stray '\260' in program
0_0_31656257_31568.cpp:1:1: error: stray '\332' in program
0_0_31656257_31568.cpp:1:1: error: stray '\267' in program
0_0_31656257_31568.cpp:1:1: error: stray '\250' in program
0_0_31656257_31568.cpp:1:1: error: stray '\243' in program
0_0_31656257_31568.cpp:1:1: error: stray '\254' in program
0_0_31656257_31568.cpp:1:1: error: stray '\322' in program
0_0_31656257_31568.cpp:1:1: error: stray '\252' in program
0_0_31656257_31568.cpp:1:1: error: stray '\307' in program
0_0_31656257_31568.cpp:1:1: error: stray '\363' in program
0_0_31656257_31568.cpp:1:1: error: stray '\303' in program
0_0_31656257_31568.cpp:1:1: error: stray '\277' in program
0_0_31656257_31568.cpp:1:1: error: stray '\325' in program
0_0_31656257_31568.cpp:1:1: error: stray '\305' in program
0_0_31656257_31568.cpp:1:1: error: stray '\277' in program
0_0_31656257_31568.cpp:1:1: error: stray '\250' in program
0_0_31656257_31568.cpp:1:1: error: stray '\306' in program
0_0_31656257_31568.cpp:1:1: error: stray '\254' in program
0_0_31656257_31568.cpp:1:1: error: stray '\266' in program
0_0_31656257_31568.cpp:1:1: error: stray '\314' in program
0_0_31656257_31568.cpp:1:1: error: stray '\261' in program
0_0_31656257_31568.cpp:1:1: error: stray '\337' in program
0_0_31656257_31568.cpp:1:1: error: stray '\323' in program
0_0_31656257_31568.cpp:1:1: error: stray '\353' in program
0_0_31656257_31568.cpp:1:1: error: stray '\327' in program
0_0_31656257_31568.cpp:1:1: error: stray '\300' in program
0_0_31656257_31568.cpp:1:1: error: stray '\351' in program
0_0_31656257_31568.cpp:1:1: error: stray '\334' in program
0_0_31656257_31568.cpp:1:1: error: stray '\306' in program
0_0_31656257_31568.cpp:1:1: error: stray '\275' in program
0_0_31656257_31568.cpp:1:1: error: stray '\320' in program
0_0_31656257_31568.cpp:1:1: error: stray '\320' in program
0_0_31656257_31568.cpp:1:1: error: stray '\243' in program
0_0_31656257_31568.cpp:1:1: error: stray '\254' in program
0_0_31656257_31568.cpp:1:1: error: stray '\262' in program
0_0_31656257_31568.cpp:1:1: error: stray '\242' in program
0_0_31656257_31568.cpp:1:1: error: stray '\310' in program
0_0_31656257_31568.cpp:1:1: error: stray '\303' in program
0_0_31656257_31568.cpp:1:1: error: stray '\313' in program
0_0_31656257_31568.cpp:1:1: error: stray '\373' in program
0_0_31656257_31568.cpp:1:1: error: stray '\303' in program
0_0_31656257_31568.cpp:1:1: error: stray '\307' in program
0_0_31656257_31568.cpp:1:1: error: stray '\263' in program
0_0_31656257_31568.cpp:1:1: error: stray '\254' in program
0_0_31656257_31568.cpp:1:1: error: stray '\263' in program
0_0_31656257_31568.cpp:1:1: error: stray '\366' in program
0_0_31656257_31568.cpp:1:1: error: stray '\327' in program
0_0_31656257_31568.cpp:1:1: error: stray '\300' in program
0_0_31656257_31568.cpp:1:1: error: stray '\351' in program
0_0_31656257_31568.cpp:1:1: error: stray '\334' in program
0_0_31656257_31568.cpp:1:1: error: stray '\276' in program
0_0_31656257_31568.cpp:1:1: error: stray '\241' in program
0_0_31656257_31568.cpp:1:1: error: stray '\301' in program
0_0_31656257_31568.cpp:1:1: error: stray '\277' in program
0_0_31656257_31568.cpp:1:1: error: stray '\266' in program
0_0_31656257_31568.cpp:1:1: error: stray '\340' in program
0_0_31656257_31568.cpp:1:1: error: stray '\243' in program
0_0_31656257_31568.cpp:1:1: error: stray '\254' in program
0_0_31656257_31568.cpp:1:1: error: stray '\316' in program
0_0_31656257_31568.cpp:1:1: error: stray '\312' in program
0_0_31656257_31568.cpp:1:1: error: stray '\304' in program
0_0_31656257_31568.cpp:1:1: error: stray '\334' in program
0_0_31656257_31568.cpp:1:1: error: stray '\263' in program
0_0_31656257_31568.cpp:1:1: error: stray '\254' in program
0_0_31656257_31568.cpp:1:1: error: stray '\263' in program
0_0_31656257_31568.cpp:1:1: error: stray '\366' in program
0_0_31656257_31568.cpp:1:1: error: stray '\327' in program
0_0_31656257_31568.cpp:1:1: error: stray '\300' in program
0_0_31656257_31568.cpp:1:1: error: stray '\351' in program
0_0_31656257_31568.cpp:1:1: error: stray '\334' in program
0_0_31656257_31568.cpp:1:1: error: stray '\266' in program
0_0_31656257_31568.cpp:1:1: error: stray '\340' in program
0_0_31656257_31568.cpp:1:1: error: stray '\311' in program
0_0_31656257_31568.cpp:1:1: error: stray '\331' in program
0_0_31656257_31568.cpp:1:1: error: stray '\241' in program
0_0_31656257_31568.cpp:1:1: error: stray '\243' in program
0_0_31656257_31568.cpp:2:1: error: stray '\267' in program
分析:对于n张卡片的最佳摆法,我们只需要在n-1张卡片的摆法下面加一张边缘与桌檐重合的卡片,并将所有卡片一起向桌檐外移动。对于一种最佳摆法,其中心一定在桌檐上,所以一定符合杠杆原理,支点是桌檐。那么对于n张卡片的情况,我们假设第n张向外移动了x,那么前n-1张的重心就在桌檐外x,因为他们的重心在n-1张卡片时原本在桌檐上。第n张卡片的重心在桌檐内0.5-x处,那么我们可以列出杠杆平衡方程:(0.5-x)*1=x*(n-1)
^
0_0_31656257_31568.cpp:2:1: error: stray '\326' in program
0_0_31656257_31568.cpp:2:1: error: stray '\316' in program
0_0_31656257_31568.cpp:2:1: error: stray '\366' in program
0_0_31656257_31568.cpp:2:1: error: stray '\243' in program
0_0_31656257_31568.cpp:2:1: error: stray '\272' in program
0_0_31656257_31568.cpp:2:1: error: stray '\266' in program
0_0_31656257_31568.cpp:2:1: error: stray '\324' in program
0_0_31656257_31568.cpp:2:1: error: stray '\323' in program
0_0_31656257_31568.cpp:2:1: error: stray '\332' in program
0_0_31656257_31568.cpp:2:1: error: stray '\325' in program
0_0_31656257_31568.cpp:2:1: error: stray '\305' in program
0_0_31656257_31568.cpp:2:1: error: stray '\277' in program
0_0_31656257_31568.cpp:2:1: error: stray '\250' in program
0_0_31656257_31568.cpp:2:1: error: stray '\306' in program
0_0_31656257_31568.cpp:2:1: error: stray '\254' in program
0_0_31656257_31568.cpp:2:1: error: stray '\265' in program
0_0_31656257_31568.cpp:2:1: error: stray '\304' in program
0_0_31656257_31568.cpp:2:1: error: stray '\327' in program
0_0_31656257_31568.cpp:2:1: error: stray '\356' in program
0_0_31656257_31568.cpp:2:1: error: stray '\274' in program
0_0_31656257_31568.cpp:2:1: error: stray '\321' in program
0_0_31656257_31568.cpp:2:1: error: stray '\260' in program
0_0_31656257_31568.cpp:2:1: error: stray '\332' in program
0_0_31656257_31568.cpp:2:1: error: stray '\267' in program
0_0_31656257_31568.cpp:2:1: error: stray '\250' in program
0_0_31656257_31568.cpp:2:1: error: stray '\243' in program
0_0_31656257_31568.cpp:2:1: error: stray '\254' in program
0_0_31656257_31568.cpp:2:1: error: stray '\316' in program
0_0_31656257_31568.cpp:2:1: error: stray '\322' in program
0_0_31656257_31568.cpp:2:1: error: stray '\303' in program
0_0_31656257_31568.cpp:2:1: error: stray '\307' in program
0_0_31656257_31568.cpp:2:1: error: stray '\326' in program
0_0_31656257_31568.cpp:2:1: error: stray '\273' in program
0_0_31656257_31568.cpp:2:1: error: stray '\320' in program
0_0_31656257_31568.cpp:2:1: error: stray '\350' in program
0_0_31656257_31568.cpp:2:1: error: stray '\322' in program
0_0_31656257_31568.cpp:2:1: error: stray '\252' in program
0_0_31656257_31568.cpp:2:1: error: stray '\324' in program
0_0_31656257_31568.cpp:2:1: error: stray '\332' in program
0_0_31656257_31568.cpp:2:1: error: stray '\325' in program
0_0_31656257_31568.cpp:2:1: error: stray '\305' in program
0_0_31656257_31568.cpp:2:1: error: stray '\277' in program
0_0_31656257_31568.cpp:2:1: error: stray '\250' in program
0_0_31656257_31568.cpp:2:1: error: stray '\306' in program
0_0_316
|