結果
問題 | No.105 arcの六角ボルト |
ユーザー |
|
提出日時 | 2014-12-16 23:43:39 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 73 ms / 5,000 ms |
コード長 | 691 bytes |
コンパイル時間 | 1,317 ms |
コンパイル使用メモリ | 158,972 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-06-11 22:03:15 |
合計ジャッジ時間 | 1,881 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;typedef double D;typedef complex<D> P;#define REP(i, n) for(int(i)=0;(i)<(n);++(i))const double EPS = 1e-9;const int MOD = 1000000007;int main(){int T;cin >> T;REP(t,T){P p[6];double x,y;REP(i,6){cin >> x >> y;p[i] = P(x,y);}double minv = 360.;REP(i,6){double a = arg(p[i])*180/3.14159265358979323;if(a > -EPS){minv = min(minv, a);}}cout << fixed << setprecision(16) << minv << endl;}return 0;}