2013-04-09から1日間の記事一覧

1100:Area of Polygons

多角形の頂点の個数と頂点座標が時計回りに与えられるので 多角形の面積を求める問題。http://www004.upp.so-net.ne.jp/s_honma/urawaza/area2.htm ↑を参考に多角形の面積を求める関数を実装した。 #include<cmath> #include<algorithm> #include<iostream> #include<vector> #include<cstdio> #define cu</cstdio></vector></iostream></algorithm></cmath>…