結果
| 問題 | No.105 arcの六角ボルト |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-22 09:51:00 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 563 bytes |
| 記録 | |
| コンパイル時間 | 759 ms |
| コンパイル使用メモリ | 68,436 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 11:16:47 |
| 合計ジャッジ時間 | 1,419 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
#include <iostream>
#include <cmath>
#include <algorithm>
#include <string>
#include <iomanip>
using namespace std;
const double pie=3.14159265358979265358979;
int main(){
int T;
cin>>T;
for(int i=0; i<T; ++i){
double X1=0,Y1=0,X2=0,Y2=0;
double XL=1;
XL/=2;
XL+=1e-9;
for(int j=0; j<6; ++j){
cin>>X1>>Y1;
if(XL<X1){
X2=X1;
Y2=Y1;
}
}
double t=Y2;
t/=X2;
double deg=atan(t);
deg*=180;
deg/=pie;
if(deg<0) deg=0;
cout<<fixed<<setprecision(9)<<deg<<endl;
}
return 0;
}