2011-03-01から1ヶ月間の記事一覧
問題文 AOJ - Problem 0003 : Is it a Right Triangle? と同じような問題です。 ピタゴラスの定理を使うだけの簡単な問題です。 #include <cstdio> using namespace std; int main(){ int a, b, c, ans1=0, ans2=0; while( scanf("%d,%d,%d", &a,&b,&c) != EOF ){ if</cstdio>…
問題文 AOJ - Problem 0003 : Is it a Right Triangle? と同じような問題です。 ピタゴラスの定理を使うだけの簡単な問題です。 #include <cstdio> using namespace std; int main(){ int a, b, c, ans1=0, ans2=0; while( scanf("%d,%d,%d", &a,&b,&c) != EOF ){ if</cstdio>…