結果
| 問題 | 
                            No.105 arcの六角ボルト
                             | 
                    
| コンテスト | |
| ユーザー | 
                             tnakao0123
                         | 
                    
| 提出日時 | 2016-03-16 21:30:00 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 1,007 bytes | 
| コンパイル時間 | 627 ms | 
| コンパイル使用メモリ | 84,152 KB | 
| 実行使用メモリ | 6,816 KB | 
| 最終ジャッジ日時 | 2024-10-01 08:48:03 | 
| 合計ジャッジ時間 | 1,142 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 1 | 
ソースコード
/* -*- coding: utf-8 -*-
 *
 * 105.cc: No.105 arcの六角ボルト - yukicoder
 */
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
 
using namespace std;
/* constant */
const double PI = acos(-1.0);
const double MIN_TH = 0.0;
const double MAX_TH = 50.0 * PI / 180;
/* typedef */
/* global variables */
/* subroutines */
/* main */
int main() {
  //printf("MIN_TH=%lf, MAX_TH=%lf\n", MIN_TH, MAX_TH);
  
  int tn;
  cin >> tn;
  while (tn--) {
    double ans;
    for (int i = 0; i < 6; i++) {
      double x, y;
      cin >> x >> y;
      double th = atan2(y, x);
      if (MIN_TH <= th && th < MAX_TH) {
	//printf("%d: (%lf,%lf)=%lf\n", i, x, y, th);
	ans = th * 180 / PI;
      }
    }
    printf("%.12lf\n", ans);
  }
  return 0;
}
            
            
            
        
            
tnakao0123