結果

問題 No.105 arcの六角ボルト
ユーザー Mcpu3Mcpu3
提出日時 2020-04-04 18:21:23
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 405 bytes
コンパイル時間 611 ms
コンパイル使用メモリ 69,224 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-16 06:02:39
合計ジャッジ時間 1,238 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
	int T;
	cin >> T;
	for (int i = 0; i < T; i++) {
		double X, Y, a = DBL_MAX;
		for (int j = 0; j < 6; j++) {
			cin >> X >> Y;
			double b = atan(Y / X) / acos(-1.0) * 180.0;
			if (b < -1.0e-11) continue;
			a = min(b, a);
		}
		printf("%.6f\n", a);
	}
}
0