結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-21 05:20:05 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 71 ms / 5,000 ms |
| コード長 | 333 bytes |
| コンパイル時間 | 1,054 ms |
| コンパイル使用メモリ | 76,496 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2025-01-02 22:32:23 |
| 合計ジャッジ時間 | 2,165 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
コンパイルメッセージ
main.cpp:8:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
8 | main()
| ^~~~
ソースコード
#include<iostream>
#include<cmath>
#include<algorithm>
#include<iomanip>
using namespace std;
int N;
double r[6];
main()
{
cin>>N;
for(int i=0;i<N;i++)
{
for(int j=0;j<6;j++)
{
double x,y;cin>>x>>y;
r[j]=atan2(y,x)+M_PI;
}
sort(r,r+6);
cout<<fixed<<setprecision(10)<<(r[5]>2*M_PI-1e-6?0:r[0])*180/M_PI<<endl;
}
}