結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
motxx
|
| 提出日時 | 2014-12-17 00:16:51 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 74 ms / 5,000 ms |
| コード長 | 426 bytes |
| コンパイル時間 | 1,485 ms |
| コンパイル使用メモリ | 157,420 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-06-11 22:05:27 |
| 合計ジャッジ時間 | 2,018 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define REP(i,a,b) for(int i=a;i<(int)b;i++)
#define rep(i,n) REP(i,0,n)
int main() {
int Tc; cin >> Tc;
while(Tc--) {
double ans = 1e20;
rep(i, 6) {
double x, y; cin >> x >> y;
double rad = atan2(y, x);
if(rad < -1e-10) continue;
ans = min(ans, rad);
}
printf("%.10f\n", ans*180./M_PI);
}
return 0;
}
motxx