2012-01-17から1日間の記事一覧
対角線と直径で比較するだけの問題. 2番目の数値=全体ー1番小さいー1番大きいで求めており,乱雑です. #include <iostream> #include <algorithm> #include <cmath> using namespace std; int main(){ double a, b, c, d; while(cin >> a >> b >> c, a){ d = sqrt(pow(min(a, min(b</cmath></algorithm></iostream>…