結果

問題 No.105 arcの六角ボルト
ユーザー HaarHaar
提出日時 2016-04-17 02:22:11
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 371 bytes
コンパイル時間 457 ms
コンパイル使用メモリ 66,504 KB
実行使用メモリ 6,812 KB
最終ジャッジ日時 2024-04-15 02:13:30
合計ジャッジ時間 968 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;

int main() {
	int n;
	double x, y, ang, min;
	
	cin >> n;
	for(int i=0;i<n;++i){
		min = 50;
		for(int j=0;j<6;++j){
			cin >> x >> y;
			ang = atan2(y,x) * 180 / M_PI;
			if(ang < 0) ang = 360 + ang;
			if(min > ang) min = ang;
		}
		cout << setprecision(15) << min << endl;
	}
	
	return 0;
}
0