結果

問題 No.105 arcの六角ボルト
コンテスト
ユーザー 古寺いろは
提出日時 2015-04-09 20:24:12
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 46 ms / 5,000 ms
コード長 380 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 977 ms
コンパイル使用メモリ 175,132 KB
実行使用メモリ 6,144 KB
最終ジャッジ日時 2026-03-25 21:26:05
合計ジャッジ時間 1,439 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include "bits/stdc++.h"
using namespace std;

#define MAX 2000002

int dp[MAX];

int main(){
	int T;
	cin >> T;
	for (int t = 0; t < T; t++)
	{
		vector<double> X(6), Y(6);
		for (int i = 0; i < 6; i++)
		{
			cin >> X[i] >> Y[i];
		}

		double ans = atan2(Y[0], X[0]) / 3.141592653589793238462 * 180;
		ans += 360;
		while (ans > 55) ans -= 60;
		printf("%.14f\n", ans);
	}
}


0