結果

問題 No.1040 垂直大学
ユーザー yomo3yomo3
提出日時 2020-05-05 05:00:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 351 bytes
コンパイル時間 2,875 ms
コンパイル使用メモリ 71,620 KB
実行使用メモリ 56,456 KB
最終ジャッジ日時 2023-09-08 02:03:38
合計ジャッジ時間 7,090 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,180 KB
testcase_01 AC 119 ms
55,680 KB
testcase_02 AC 122 ms
55,836 KB
testcase_03 AC 118 ms
55,696 KB
testcase_04 AC 121 ms
56,140 KB
testcase_05 AC 122 ms
56,204 KB
testcase_06 AC 117 ms
56,116 KB
testcase_07 AC 122 ms
56,456 KB
testcase_08 AC 122 ms
55,792 KB
testcase_09 AC 122 ms
56,192 KB
testcase_10 AC 121 ms
55,760 KB
testcase_11 AC 123 ms
56,188 KB
testcase_12 AC 120 ms
55,852 KB
testcase_13 AC 120 ms
55,960 KB
testcase_14 AC 120 ms
55,748 KB
testcase_15 AC 120 ms
56,220 KB
testcase_16 AC 123 ms
56,044 KB
testcase_17 AC 122 ms
56,220 KB
testcase_18 AC 121 ms
55,772 KB
testcase_19 AC 125 ms
56,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String ans;
        if ((N + 90) % 180 == 0) {
            ans = "Yes";
        } else {
            ans = "No";
        }
        System.out.println(ans);
     }
}
0