結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-17 03:01:40 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 68 ms / 5,000 ms |
| コード長 | 409 bytes |
| コンパイル時間 | 466 ms |
| コンパイル使用メモリ | 66,444 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-04 10:23:16 |
| 合計ジャッジ時間 | 966 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main() {
int n;
double x, y, ang, min;
cin >> n;
for(int i=0;i<n;++i){
min = 100;
for(int j=0;j<6;++j){
cin >> x >> y;
ang = atan2(y,x) * 180 / M_PI;
if(ang < 0) ang = 360 + ang;
if(ang >= 50) ang -= 60;
if(min > ang) min = ang;
}
cout << fixed << setprecision(10) << min << endl;
}
return 0;
}