結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-23 14:43:12 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 5,000 ms |
| コード長 | 607 bytes |
| コンパイル時間 | 638 ms |
| コンパイル使用メモリ | 66,840 KB |
| 実行使用メモリ | 6,816 KB |
| 最終ジャッジ日時 | 2024-10-04 15:19:34 |
| 合計ジャッジ時間 | 1,181 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <iostream>
#include <cmath>
#include <iomanip>
int main(){
std::ios::sync_with_stdio(false);
std::cin.tie(0);
int t;
std::cin >> t;
for(int i=0; i<t; ++i){
bool foundedF = false;
for(int j=0; j<6; ++j){
double x, y;
std::cin >> x >> y;
y+=1/1e12;
if(!foundedF && x>0 && y>0 && y<x*std::sqrt(3)){
std::cout << std::fixed << std::setprecision(7) << std::fmod(std::round(std::atan(y/x)*180*1e7/M_PI)/1e7, 60) << "\n";
foundedF=true;
}
}
}
return 0;
}