結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2014-12-17 00:13:54 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 701 bytes |
| コンパイル時間 | 726 ms |
| コンパイル使用メモリ | 81,192 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-06-11 22:05:13 |
| 合計ジャッジ時間 | 1,217 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
#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;
}