結果
| 問題 | 
                            No.105 arcの六角ボルト
                             | 
                    
| コンテスト | |
| ユーザー | 
                             koyumeishi
                         | 
                    
| 提出日時 | 2014-12-16 23:37:38 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 655 bytes | 
| コンパイル時間 | 875 ms | 
| コンパイル使用メモリ | 78,000 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-06-11 22:02:05 | 
| 合計ジャッジ時間 | 1,239 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 1 | 
ソースコード
#include <iostream>
#include <vector>
#include <cstdio>
#include <sstream>
#include <map>
#include <string>
#include <algorithm>
#include <queue>
#include <cmath>
using namespace std;
void solve(){
	vector<double> x(6);
	vector<double> y(6);
	vector<double> theta(6);
	
	for(int i=0; i<6; i++){
		cin >> x[i] >> y[i];
		theta[i] = atan2( y[i], x[i] );
	}
	sort(theta.begin(), theta.end());
	double ans = *upper_bound(theta.begin(), theta.end(), 0) - atan2(0, 1);
	double PI = atan2l(1e-18,-1);
	printf("%.12f\n", ans*180/PI);
}
int main(){
	int T;
	cin >> T;
	for(int t=0; t<T; t++){
		solve();
	}
	return 0;
}
            
            
            
        
            
koyumeishi