結果

問題 No.105 arcの六角ボルト
ユーザー mayoko_mayoko_
提出日時 2014-12-16 23:35:38
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 742 bytes
コンパイル時間 536 ms
コンパイル使用メモリ 72,548 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-02 15:28:27
合計ジャッジ時間 1,080 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <iostream>
#include <utility>
#include <set>
#include <cctype>
#include <queue>
#include <stack>
#include <cstdio>
#include <cstdlib>
#include <cmath>

#define INF 1000000000

using namespace std;
typedef long long ll;

int main(void) {
    int T;
    cin >> T;
    while (T--) {
        double x[6];
        double y[6];
        double ret = 0;
        for (int i = 0; i < 6; i++) {
            cin >> x[i] >> y[i];
            double ans = acos(x[i]);
            ans = ans / M_PI * 180;
            if (0 <= ans && ans <= 50) ret = ans;
        }
        printf("%.10lf\n", ret);
    }
    return 0;
}
0