結果

問題 No.105 arcの六角ボルト
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2017-01-17 18:43:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 1,543 ms / 5,000 ms
コード長 564 bytes
コンパイル時間 2,231 ms
コンパイル使用メモリ 71,904 KB
実行使用メモリ 66,896 KB
最終ジャッジ日時 2023-08-24 16:40:08
合計ジャッジ時間 6,284 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int T = sc.nextInt();
        for(int n=0; n<T; n++){
            double ans=0;
            for(int i=0; i<6; i++){
                double X = sc.nextDouble();
                double Y = sc.nextDouble();
                double angle = Math.toDegrees(Math.atan(Y/X));
                if(angle>=0&&angle<=50){
                    ans=angle;
                }
            }
            System.out.println(ans);
        }
    }
}
0