結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2020-04-06 16:42:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 66 ms / 5,000 ms |
| コード長 | 478 bytes |
| コンパイル時間 | 1,384 ms |
| コンパイル使用メモリ | 172,760 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-07-06 12:57:06 |
| 合計ジャッジ時間 | 1,867 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ld=long double;
const ld PI=acos(-1);
const ld EPS=1e-11;
signed main(){
int t;cin>>t;
while(t--){
vector<ld> x(6),y(6);
for(int i=0;i<6;i++)cin>>x[i]>>y[i];
vector<ld> ans(6);
for(int i=0;i<6;i++)ans[i]=atan2(y[i],x[i]);
for(int i=0;i<6;i++)ans[i]+=EPS;
for(int i=0;i<6;i++)if(ans[i]<0)ans[i]=10000;
sort(ans.begin(),ans.end());
cout<<fixed<<setprecision(12)<<ans[0]/PI*180<<endl;
}
}
cureskol