結果

問題 No.1040 垂直大学
ユーザー gemmarogemmaro
提出日時 2020-05-02 06:44:52
言語 Elixir
(1.16.2)
結果
AC  
実行時間 613 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 1,187 ms
コンパイル使用メモリ 55,452 KB
実行使用メモリ 49,948 KB
最終ジャッジ日時 2023-08-30 00:45:03
合計ジャッジ時間 15,897 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 608 ms
49,136 KB
testcase_01 AC 608 ms
48,776 KB
testcase_02 AC 604 ms
49,068 KB
testcase_03 AC 607 ms
49,120 KB
testcase_04 AC 602 ms
49,400 KB
testcase_05 AC 607 ms
49,272 KB
testcase_06 AC 610 ms
49,132 KB
testcase_07 AC 606 ms
49,100 KB
testcase_08 AC 604 ms
49,632 KB
testcase_09 AC 603 ms
49,152 KB
testcase_10 AC 613 ms
49,200 KB
testcase_11 AC 606 ms
49,268 KB
testcase_12 AC 608 ms
49,512 KB
testcase_13 AC 611 ms
49,264 KB
testcase_14 AC 603 ms
49,116 KB
testcase_15 AC 596 ms
49,384 KB
testcase_16 AC 598 ms
49,948 KB
testcase_17 AC 601 ms
49,080 KB
testcase_18 AC 605 ms
49,212 KB
testcase_19 AC 600 ms
49,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.read(:line)
    |> Integer.parse()
    |> solve
    |> IO.puts()
  end

  def solve({n, _}) do
    m = n |> rem(360)

    cond do
      m == 90 || m == 90 * 3 -> "Yes"
      :else -> "No"
    end
  end
end
0