結果
問題 | No.105 arcの六角ボルト |
ユーザー |
![]() |
提出日時 | 2014-12-17 00:13:45 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 422 bytes |
コンパイル時間 | 1,206 ms |
コンパイル使用メモリ | 158,584 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-06-11 22:05:07 |
合計ジャッジ時間 | 1,727 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 1 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define REP(i,a,b) for(int i=a;i<(int)b;i++)#define rep(i,n) REP(i,0,n)int main() {int Tc; cin >> Tc;while(Tc--) {double ans = 1e20;rep(i, 6) {double x, y; cin >> x >> y;double rad = atan2(y, x);if(rad < 0.) continue;ans = min(ans, rad);}printf("%.10f\n", ans*180./M_PI);}return 0;}