結果
問題 |
No.105 arcの六角ボルト
|
ユーザー |
|
提出日時 | 2025-07-03 16:09:45 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 34 ms / 5,000 ms |
コード長 | 474 bytes |
コンパイル時間 | 1,902 ms |
コンパイル使用メモリ | 194,876 KB |
実行使用メモリ | 7,840 KB |
最終ジャッジ日時 | 2025-07-03 16:09:48 |
合計ジャッジ時間 | 2,884 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while(T--){ double answer = 1000; for(int i=0; i<6; i++){ double x,y; cin >> x >> y; double now = atan2(y,x); if(now < -0.01) continue; answer = min(answer,now); } cout << fixed << setprecision(20) << answer*180/3.14159265358979 << "\n"; } }