[问题] 请问一题ACM 10002 - Center of Masses

楼主: ClickFive (点五次之五重天)   2008-09-27 17:02:48
ACM 10002
http://0rz.tw/b54Ok
Output
For each polygon, a single line with the coordinates x and y of the center of
masses of that polygon, rounded to three decimal digits.
的英文是这样
不过,我照我理解的题目的意思,就是把属于该凸多边形的每一个顶点的值,
拿来做质心计算,是这样子吗?@@"
一直算不出 sample input 里的第三组 output的答案
一二组都对,可是看不出第三组为什么错了.... 卡了好久
有哪位高手可以帮我看一下吗?感谢!

Links booklink

Contact Us: admin [ a t ] ucptt.com