結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2020-04-06 16:39:02 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 421 bytes |
| コンパイル時間 | 1,627 ms |
| コンパイル使用メモリ | 172,948 KB |
| 実行使用メモリ | 6,812 KB |
| 最終ジャッジ日時 | 2024-07-06 12:53:37 |
| 合計ジャッジ時間 | 2,217 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ld=long double;
const ld PI=acos(-1);
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++)if(ans[i]<0)ans[i]=10000;
sort(ans.begin(),ans.end());
cout<<fixed<<setprecision(12)<<ans[0]/PI*180<<endl;
}
}
cureskol