2011-08-29から1日間の記事一覧

PKU 1305 Fermat vs. Pythagoras

PKU

http://poj.org/problem?id=1305 整数Nが与えられる。 このうち、x^2+y^2=z^2 かつ x,y,zは互いに素で、0

PKU 1732 Phone numbers

PKU

http://poj.org/problem?id=1732 数字から文字への変換表をもとに、ある数字列を与えられた単語リストに出現する単語の列に置き換えて、単語数が最も少ないものを出力しろというような問題。

PKU 2194 Stacking Cylinders

PKU

http://poj.org/problem?id=2194 円筒を上に積み重ねていくときの、一番上の円筒の中心座標を求めろというような問題。