結果

問題 No.105 arcの六角ボルト
ユーザー sayusayu
提出日時 2014-12-17 00:13:54
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 701 bytes
コンパイル時間 796 ms
コンパイル使用メモリ 74,732 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-02 15:32:40
合計ジャッジ時間 1,183 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef long long int ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
#define rep(i,x) for(int i=0;i<(int)(x);++i)

int main(){
	int n;
	double x, y;
	string s;
	cin >> n;
	rep(i,n) {
		getline(cin,s);
		double ans, mint = -1;
		rep(i,6) {
			cin >> x >> y;
			if (y/x >= 0 && mint < 0) mint = y/x;
			if (y/x >= 0 && mint > y/x) mint = y/x;
		}
		ans = atan(mint)*360/(2*M_PI);
		printf("%.12lf\n", ans);
	}
	return 0;
}
0