結果

問題 No.1003 サイコロの実装 (1)
ユーザー gemmarogemmaro
提出日時 2020-04-19 22:53:18
言語 Elixir
(1.16.2)
結果
AC  
実行時間 650 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 1,075 ms
コンパイル使用メモリ 54,852 KB
実行使用メモリ 51,120 KB
最終ジャッジ日時 2023-08-30 00:33:56
合計ジャッジ時間 20,884 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 620 ms
49,112 KB
testcase_01 AC 633 ms
51,120 KB
testcase_02 AC 618 ms
49,300 KB
testcase_03 AC 629 ms
49,300 KB
testcase_04 AC 650 ms
49,920 KB
testcase_05 AC 617 ms
49,728 KB
testcase_06 AC 635 ms
49,244 KB
testcase_07 AC 637 ms
49,280 KB
testcase_08 AC 617 ms
49,784 KB
testcase_09 AC 620 ms
49,096 KB
testcase_10 AC 633 ms
49,092 KB
testcase_11 AC 626 ms
49,364 KB
testcase_12 AC 620 ms
50,244 KB
testcase_13 AC 648 ms
49,260 KB
testcase_14 AC 619 ms
49,088 KB
testcase_15 AC 627 ms
49,032 KB
testcase_16 AC 626 ms
49,132 KB
testcase_17 AC 631 ms
49,232 KB
testcase_18 AC 630 ms
49,124 KB
testcase_19 AC 631 ms
49,100 KB
testcase_20 AC 630 ms
49,596 KB
testcase_21 AC 643 ms
49,156 KB
testcase_22 AC 627 ms
50,132 KB
testcase_23 AC 617 ms
49,716 KB
testcase_24 AC 626 ms
50,268 KB
testcase_25 AC 628 ms
49,128 KB
testcase_26 AC 624 ms
49,480 KB
testcase_27 AC 621 ms
48,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

  def solve(n) do
    cond do
      n |> rem(6) == 0 -> "Yes"
      true -> "No"
    end
  end
end
0