結果

問題 No.1040 垂直大学
ユーザー 👑 yumechiyumechi
提出日時 2021-02-18 02:41:06
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 971 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 7,478 ms
コンパイル使用メモリ 243,108 KB
実行使用メモリ 63,320 KB
最終ジャッジ日時 2023-10-12 12:25:54
合計ジャッジ時間 29,289 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 949 ms
62,796 KB
testcase_01 AC 943 ms
63,320 KB
testcase_02 AC 949 ms
62,836 KB
testcase_03 AC 948 ms
62,868 KB
testcase_04 AC 941 ms
62,844 KB
testcase_05 AC 954 ms
62,728 KB
testcase_06 AC 946 ms
62,636 KB
testcase_07 AC 947 ms
62,788 KB
testcase_08 AC 946 ms
62,704 KB
testcase_09 AC 941 ms
62,860 KB
testcase_10 AC 949 ms
62,960 KB
testcase_11 AC 955 ms
63,144 KB
testcase_12 AC 966 ms
62,664 KB
testcase_13 AC 966 ms
62,840 KB
testcase_14 AC 953 ms
62,704 KB
testcase_15 AC 971 ms
62,824 KB
testcase_16 AC 968 ms
63,088 KB
testcase_17 AC 966 ms
62,944 KB
testcase_18 AC 947 ms
62,896 KB
testcase_19 AC 957 ms
62,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  println(sc.nextInt match {
    case n if(!(n % 180 == 0) && n % 90 == 0) => "Yes"
    case _ => "No"
  })
}
0