結果
| 問題 | No.105 arcの六角ボルト |
| コンテスト | |
| ユーザー |
xuzijian629
|
| 提出日時 | 2018-10-29 18:42:05 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 651 bytes |
| 記録 | |
| コンパイル時間 | 2,033 ms |
| コンパイル使用メモリ | 194,196 KB |
| 最終ジャッジ日時 | 2025-01-06 15:03:21 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using i64 = int64_t;
using vi = vector<i64>;
using vvi = vector<vi>;
void solve() {
double ans = 60;
double X, Y;
for (int i = 0; i < 6; i++) {
double x, y;
cin >> x >> y;
if (x > 0.5 - 1e-12 && -1e12 <= y && y < 1 + 1e-12) {
X = x, Y = y;
ans = min(ans, abs(atan(Y / X) * 180 / acos(-1)));
}
}
cout << ans << endl;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
cout.setf(ios::fixed);
cout.precision(10);
int t;
cin >> t;
while (t--) {
solve();
}
}
xuzijian629