結果
| 問題 | 
                            No.105 arcの六角ボルト
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2019-07-21 05:18:29 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 329 bytes | 
| コンパイル時間 | 750 ms | 
| コンパイル使用メモリ | 76,124 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2025-01-02 22:25:37 | 
| 合計ジャッジ時間 | 1,341 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 1 | 
コンパイルメッセージ
main.cpp:8:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    8 | main()
      | ^~~~
            
            ソースコード
#include<iostream>
#include<cmath>
#include<algorithm>
#include<iomanip>
using namespace std;
int N;
double r[6];
main()
{
	cin>>N;
	for(int i=0;i<N;i++)
	{
		for(int j=0;j<6;j++)
		{
			double x,y;cin>>x>>y;
			r[j]=atan2(y,x)+M_PI;
		}
		sort(r,r+6);
		cout<<fixed<<setprecision(10)<<min(r[0],2*M_PI-r[5])*180/M_PI<<endl;
	}
}