結果
| 問題 | No.105 arcの六角ボルト |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-17 02:22:11 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 371 bytes |
| 記録 | |
| コンパイル時間 | 556 ms |
| コンパイル使用メモリ | 66,036 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-04 10:22:06 |
| 合計ジャッジ時間 | 1,191 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 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 = 50;
for(int j=0;j<6;++j){
cin >> x >> y;
ang = atan2(y,x) * 180 / M_PI;
if(ang < 0) ang = 360 + ang;
if(min > ang) min = ang;
}
cout << setprecision(15) << min << endl;
}
return 0;
}