結果
| 問題 | No.105 arcの六角ボルト |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-09-04 10:31:03 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 68 ms / 5,000 ms |
| コード長 | 580 bytes |
| 記録 | |
| コンパイル時間 | 654 ms |
| コンパイル使用メモリ | 74,444 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-12 21:35:03 |
| 合計ジャッジ時間 | 1,136 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
const double EPS = 0.00001;
const double PI = 2 * acos(0.0);
#define Equals(a,b) abs(a-b) < EPS
#define inRange(x,a,b) a <= x && x <= b
int main(){
int n;
cin >> n;
while(n-- > 0){
double x, y;
cin >> x >> y;
double ans = atan2(y, x);
ans = ans / PI * 180 + 180;
// dump
for(int i = 0; i < 5; i++) cin >> x >> y;
while(ans > 51) ans -= 60;
cout << fixed << setprecision(10) << abs(ans) << endl;
}
return 0;
}