結果

問題 No.105 arcの六角ボルト
ユーザー ぴろずぴろず
提出日時 2014-12-16 23:30:09
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 513 bytes
コンパイル時間 2,232 ms
コンパイル使用メモリ 71,868 KB
実行使用メモリ 65,600 KB
最終ジャッジ日時 2023-09-02 15:24:54
合計ジャッジ時間 5,979 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package no105;

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();
		for(int tt=0;tt<t;tt++) {
			double arg = 100;
			for(int i=0;i<6;i++) {
				double x = sc.nextDouble();
				double y = sc.nextDouble();
				double atan = Math.atan2(y, x);
				if (atan < 0) {
					atan = 2 * Math.PI - atan;
				}
				arg = Math.min(arg, atan);
			}
			System.out.println(Math.toDegrees(arg));
		}
	}
}
0