結果
問題 | No.105 arcの六角ボルト |
ユーザー |
|
提出日時 | 2016-11-29 15:39:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 66 ms / 5,000 ms |
コード長 | 502 bytes |
コンパイル時間 | 1,473 ms |
コンパイル使用メモリ | 166,448 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 13:30:15 |
合計ジャッジ時間 | 1,922 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <bits/stdc++.h>using namespace std;const double EPS = 1e-8;signed main(){int T; cin >> T;for( int kase = 0; kase < T; ++kase ){double ans = 1e9;for( int i = 0; i < 6; ++i ){double X, Y; cin >> X >> Y;if( fabs( X ) < EPS ) continue;double rad = atan( Y / X );double deg = rad * 180.0 / acos( -1.0 );if( deg + EPS >= 0.0 )ans = min( ans, deg );}cout << fixed << setprecision( 10 ) << ans << endl;}return 0;}