結果

問題 No.105 arcの六角ボルト
ユーザー machymachy
提出日時 2015-06-13 17:27:50
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 570 bytes
コンパイル時間 1,285 ms
コンパイル使用メモリ 73,788 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-21 01:05:02
合計ジャッジ時間 1,409 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <iomanip>
#include <map>
#include <cmath>
using namespace std;
typedef long long LL;

int main(){
    int t;
    cin >> t;
    for(int i = 0; i < t; i++){
        double x[6], y[6];
        double ans = M_PI;
        for(int j = 0; j < 6; j++){
            cin >> x[j] >> y[j];
            double a = atan2(y[j], x[j]);
            if(a >= -1.0e-10) ans = min(ans, a);
        }
        cout << fixed << setprecision(13) << ans*180/M_PI << endl;
    }
    return 0;
}
0