結果
| 問題 | No.105 arcの六角ボルト |
| コンテスト | |
| ユーザー |
tkmst201
|
| 提出日時 | 2017-04-28 21:45:30 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 5,000 ms |
| コード長 | 973 bytes |
| 記録 | |
| コンパイル時間 | 903 ms |
| コンパイル使用メモリ | 174,384 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-04 06:49:24 |
| 合計ジャッジ時間 | 1,379 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) (v).begin(),(v).end()
template<typename A, typename B> inline bool chmax(A &a, B b) { if (a<b) { a=b; return 1; } return 0; }
template<typename A, typename B> inline bool chmin(A &a, B b) { if (a>b) { a=b; return 1; } return 0; }
typedef unsigned long long ull;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<int, pii> P;
const ll INF = 1ll<<60;
const ll MOD = 1000000007;
const double EPS = 1e-8;
const double PI = acos(-1);
double radToAng(double rad) {
return rad * 180.0 / PI;
}
int main() {
int t;
cin >> t;
while (t--) {
double x[6], y[6];
double ans = 50;
REP(i, 6) {
scanf("%lf %lf", x + i, y + i);
double ang = radToAng(atan2(y[i], x[i]));
if (ang >= -EPS) chmin(ans, ang);
}
ans = abs(ans);
printf("%.15f\n", ans);
}
return 0;
}
tkmst201