結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
machy
|
| 提出日時 | 2015-06-13 17:27:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 68 ms / 5,000 ms |
| コード長 | 570 bytes |
| コンパイル時間 | 538 ms |
| コンパイル使用メモリ | 74,576 KB |
| 実行使用メモリ | 6,816 KB |
| 最終ジャッジ日時 | 2024-07-06 19:49:13 |
| 合計ジャッジ時間 | 998 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <iomanip>
#include <map>
#include <cmath>
using namespace std;
typedef long long LL;
int main(){
int t;
cin >> t;
for(int i = 0; i < t; i++){
double x[6], y[6];
double ans = M_PI;
for(int j = 0; j < 6; j++){
cin >> x[j] >> y[j];
double a = atan2(y[j], x[j]);
if(a >= -1.0e-10) ans = min(ans, a);
}
cout << fixed << setprecision(13) << ans*180/M_PI << endl;
}
return 0;
}
machy