結果
| 問題 | 
                            No.105 arcの六角ボルト
                             | 
                    
| コンテスト | |
| ユーザー | 
                             mayoko_
                         | 
                    
| 提出日時 | 2014-12-17 08:57:53 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 69 ms / 5,000 ms | 
| コード長 | 757 bytes | 
| コンパイル時間 | 806 ms | 
| コンパイル使用メモリ | 73,412 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-06-12 00:59:54 | 
| 合計ジャッジ時間 | 1,599 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
ソースコード
#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;
    double EPS = 1e-6;
    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 = atan2(y[i], x[i]) / M_PI * 180;
            if (0-EPS <= ans && ans+EPS <= 50) ret = ans;
        }
        printf("%.16lf\n", ret);
    }
    return 0;
}
            
            
            
        
            
mayoko_