結果

問題 No.105 arcの六角ボルト
ユーザー xuzijian629xuzijian629
提出日時 2018-10-29 18:44:25
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 651 bytes
コンパイル時間 2,142 ms
コンパイル使用メモリ 200,040 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-04-29 23:10:46
合計ジャッジ時間 2,581 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#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-11 && -1e11 <= y && y < 1 + 1e-11) {
            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();
    }
}
0