結果
| 問題 | No.105 arcの六角ボルト |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-12 16:53:58 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 470 bytes |
| 記録 | |
| コンパイル時間 | 3,240 ms |
| コンパイル使用メモリ | 186,640 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-12 16:54:03 |
| 合計ジャッジ時間 | 3,439 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
#include<iostream>
#include<vector>
#include<math.h>
#include<algorithm>
using namespace std;
using ll = long long;
void solve(){
long double theta=1e9, eps=1e-13;
for(int i=0; i<6; i++){
long double x, y; cin >> x >> y;
if(x<eps||y<eps) continue;
theta=min(theta, atan2(y, x));
}
long double ans=theta*45.0/atan2(1, 1);
if(ans>=60.0-eps) ans=0;
printf("%.10lf\n", ans);
}
int main(void){
int t; cin >> t;
while(t--) solve();
return 0;
}