結果

問題 No.105 arcの六角ボルト
ユーザー ぴろずぴろず
提出日時 2014-12-16 23:33:16
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 482 bytes
コンパイル時間 3,045 ms
コンパイル使用メモリ 71,496 KB
実行使用メモリ 65,072 KB
最終ジャッジ日時 2023-09-02 15:26:45
合計ジャッジ時間 6,631 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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) {
					arg = Math.min(arg, atan);
				}
			}
			System.out.println(Math.toDegrees(arg));
		}
	}
}
0