結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
koyumeishi
|
| 提出日時 | 2014-12-16 23:30:30 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 594 bytes |
| コンパイル時間 | 996 ms |
| コンパイル使用メモリ | 77,200 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-06-11 21:58:34 |
| 合計ジャッジ時間 | 1,338 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 = theta[0] - atan2(-1e-18, -1);
printf("%.12f\n", ans*180/M_PI);
}
int main(){
int T;
cin >> T;
for(int t=0; t<T; t++){
solve();
}
return 0;
}
koyumeishi