結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-07-31 09:57:14 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 628 bytes |
| コンパイル時間 | 922 ms |
| コンパイル使用メモリ | 69,032 KB |
| 実行使用メモリ | 6,816 KB |
| 最終ジャッジ日時 | 2024-11-06 21:26:48 |
| 合計ジャッジ時間 | 1,430 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:33:11: warning: ‘d’ may be used uninitialized in this function [-Wmaybe-uninitialized]
33 | e=asin(d);
| ~~~~^~~
ソースコード
#include <iostream>
#include <algorithm>
#include <cmath>
#include <iomanip>
using namespace std;
typedef long long ll;
static const double pi = 3.14159265358979265358979;
int main(){
int t;
double x,y;
cin>>t;
double a,b,c,d,e;
a=1/2;
b=sqrt(3)/2;
ll z;
b*=1e12;
z=b;
b=z/1e12;
for(int i=0; i<t; ++i){
for(int j=0; j<6; ++j){
cin>>x>>y;
x*=1e12;
z=x;
x=z/1e12;
y*=1e12;
z=y;
y=z/1e12;
if(x<=1 && x>a && y>=0 && y<b){
c=y;
d=c/1;
}
}
e=asin(d);
e*=(180/pi);
cout<<fixed<<setprecision(12)<<e<<endl;
}
return 0;
}