結果
| 問題 | No.105 arcの六角ボルト |
| コンテスト | |
| ユーザー |
LayCurse
|
| 提出日時 | 2014-11-27 14:06:32 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 5,000 ms |
| コード長 | 475 bytes |
| 記録 | |
| コンパイル時間 | 1,578 ms |
| コンパイル使用メモリ | 173,580 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-06 14:00:43 |
| 合計ジャッジ時間 | 1,819 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
int main(){
int i, j, k;
int T;
double X, Y, th, pi = acos(0)*2;
double res;
scanf("%d",&T);
while(T--){
res = 1e10;
rep(i,6){
scanf("%lf%lf",&X,&Y);
th = atan2(Y,X);
if(th < -1e-9) continue;
res = min(res, th);
}
res = res * 180 / pi;
printf("%.16f\n",res);
}
return 0;
}
LayCurse