結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
IL_msta
|
| 提出日時 | 2015-07-01 08:40:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 940 bytes |
| コンパイル時間 | 635 ms |
| コンパイル使用メモリ | 85,676 KB |
| 実行使用メモリ | 6,816 KB |
| 最終ジャッジ日時 | 2024-07-07 21:39:21 |
| 合計ジャッジ時間 | 1,059 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
#define _USE_MATH_DEFINES
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <list>
#include <queue>
#include <vector>
#include <complex>
#include <set>
/////////
#define REP(i, x, n) for(int i = x; i < n; i++)
#define rep(i,n) REP(i,0,n)
#define P(p) cout<<(p)<<endl;
/////////
typedef long long LL;
typedef long double LD;
/////////
using namespace::std;
/////////
LD ansLD[5000];
int main(void){
std::cin.tie(0);
std::ios::sync_with_stdio(false);
std::cout << std::fixed;//
cout << setprecision(7);//
int T;
cin>>T;
LD X[6],Y[6];
LD X0,Y0;
LD s50 = 2.0*M_PI*50.0/360;
for(int Loop=0;Loop<T;++Loop){
rep(i,6){
cin>>X[i]>>Y[i];
if(0<=Y[i] && Y[i] <= sin(s50) &&
cos(s50) <= X[i]){
X0 = X[i];
Y0 = Y[i];
}
}
LD ans = atan2(Y0,X0);
LD kk = 180/M_PI;
ansLD[Loop] = ans*kk;
}
rep(i,T){
P( ansLD[i] );
}
return 0;
}
IL_msta