結果

問題 No.105 arcの六角ボルト
ユーザー GrenacheGrenache
提出日時 2015-11-23 19:14:25
言語 Java21
(openjdk 21)
結果
AC  
実行時間 1,750 ms / 5,000 ms
コード長 599 bytes
コンパイル時間 4,808 ms
コンパイル使用メモリ 72,600 KB
実行使用メモリ 64,704 KB
最終ジャッジ日時 2023-10-11 18:22:57
合計ジャッジ時間 7,655 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,750 ms
64,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder105 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int t = sc.nextInt();
        for (int tcase = 0; tcase < t; tcase++) {
        	double ret = 0;
        	for (int i = 0; i < 6; i++) {
        		double x = sc.nextDouble();
        		double y = sc.nextDouble();

        		double tmp = Math.atan2(y, x) / Math.PI * 180;

        		if (tmp >= 0 && tmp <= 50) {
        			ret = tmp;
        		}
        	}

        	System.out.printf("%.7f\n", ret);
        }

        sc.close();
    }
}
0