結果

問題 No.1040 垂直大学
ユーザー Yosuke YamaguchiYosuke Yamaguchi
提出日時 2021-02-07 19:38:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 417 bytes
コンパイル時間 3,261 ms
コンパイル使用メモリ 72,168 KB
実行使用メモリ 56,064 KB
最終ジャッジ日時 2023-09-17 18:03:46
合計ジャッジ時間 6,691 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
56,064 KB
testcase_01 AC 116 ms
55,584 KB
testcase_02 AC 117 ms
56,016 KB
testcase_03 AC 120 ms
55,812 KB
testcase_04 AC 118 ms
55,616 KB
testcase_05 AC 116 ms
55,812 KB
testcase_06 AC 113 ms
55,304 KB
testcase_07 AC 117 ms
55,700 KB
testcase_08 AC 115 ms
55,792 KB
testcase_09 AC 112 ms
55,816 KB
testcase_10 AC 116 ms
55,692 KB
testcase_11 AC 113 ms
55,872 KB
testcase_12 AC 112 ms
55,748 KB
testcase_13 AC 120 ms
55,940 KB
testcase_14 AC 119 ms
55,952 KB
testcase_15 AC 114 ms
55,656 KB
testcase_16 AC 116 ms
55,992 KB
testcase_17 AC 119 ms
55,808 KB
testcase_18 AC 113 ms
55,324 KB
testcase_19 AC 115 ms
55,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

// https://yukicoder.me/problems/no/1040
public class Virtical1040 {
  public static void main(String[] args) {
    // 標準入力から読み込む際に、Scan
    Scanner sc = new Scanner(System.in);
    int angle = Integer.parseInt(sc.next());
    if (angle % 360 == 90 || angle % 360  == 270) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
}
0