結果
| 問題 | No.105 arcの六角ボルト |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-09-04 10:31:03 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 46 ms / 5,000 ms |
| コード長 | 580 bytes |
| 記録 | |
| コンパイル時間 | 448 ms |
| コンパイル使用メモリ | 90,228 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-30 01:26:24 |
| 合計ジャッジ時間 | 1,395 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}