結果
問題 | No.105 arcの六角ボルト |
ユーザー | kotatsugame |
提出日時 | 2019-07-21 05:18:29 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 329 bytes |
コンパイル時間 | 686 ms |
コンパイル使用メモリ | 78,324 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-08-30 23:13:49 |
合計ジャッジ時間 | 1,289 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
コンパイルメッセージ
main.cpp:8:1: 警告: ISO C++ では型の無い ‘main’ の宣言を禁止しています [-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; } }