結果

問題 No.1040 垂直大学
ユーザー penqenpenqen
提出日時 2020-12-16 14:50:06
言語 Elixir
(1.16.2)
結果
AC  
実行時間 570 ms / 2,000 ms
コード長 260 bytes
コンパイル時間 1,127 ms
コンパイル使用メモリ 54,696 KB
実行使用メモリ 50,236 KB
最終ジャッジ日時 2023-08-30 01:11:50
合計ジャッジ時間 13,712 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 569 ms
49,292 KB
testcase_01 AC 565 ms
49,692 KB
testcase_02 AC 570 ms
50,036 KB
testcase_03 AC 558 ms
49,164 KB
testcase_04 AC 559 ms
49,288 KB
testcase_05 AC 557 ms
49,212 KB
testcase_06 AC 561 ms
49,260 KB
testcase_07 AC 559 ms
49,316 KB
testcase_08 AC 556 ms
49,864 KB
testcase_09 AC 554 ms
49,276 KB
testcase_10 AC 562 ms
49,332 KB
testcase_11 AC 554 ms
49,924 KB
testcase_12 AC 556 ms
50,236 KB
testcase_13 AC 544 ms
49,224 KB
testcase_14 AC 547 ms
49,232 KB
testcase_15 AC 548 ms
49,264 KB
testcase_16 AC 549 ms
49,412 KB
testcase_17 AC 546 ms
49,232 KB
testcase_18 AC 547 ms
49,428 KB
testcase_19 AC 553 ms
49,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.read(:line)
    |> String.trim()
    |> String.to_integer()
    |> solve()
    |> IO.puts()
  end

  def solve(n) when 1 <= n and n <= 1_000 do
    if rem(n, 180) == 90 do
      "Yes"
    else
      "No"
    end
  end
end
0