結果

問題 No.9010 うるう年判定
ユーザー 👑 yumechiyumechi
提出日時 2017-06-16 00:42:06
言語 Elixir
(1.16.2)
結果
AC  
実行時間 606 ms / 2,000 ms
コード長 283 bytes
コンパイル時間 916 ms
コンパイル使用メモリ 55,500 KB
実行使用メモリ 50,440 KB
最終ジャッジ日時 2023-08-29 22:42:57
合計ジャッジ時間 19,489 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 580 ms
49,140 KB
testcase_01 AC 586 ms
49,884 KB
testcase_02 AC 585 ms
50,032 KB
testcase_03 AC 585 ms
49,264 KB
testcase_04 AC 581 ms
49,088 KB
testcase_05 AC 592 ms
49,380 KB
testcase_06 AC 584 ms
49,260 KB
testcase_07 AC 579 ms
49,196 KB
testcase_08 AC 572 ms
49,280 KB
testcase_09 AC 583 ms
49,968 KB
testcase_10 AC 581 ms
49,228 KB
testcase_11 AC 574 ms
49,348 KB
testcase_12 AC 574 ms
49,180 KB
testcase_13 AC 606 ms
50,440 KB
testcase_14 AC 596 ms
49,272 KB
testcase_15 AC 587 ms
49,180 KB
testcase_16 AC 599 ms
49,992 KB
testcase_17 AC 563 ms
49,884 KB
testcase_18 AC 577 ms
49,232 KB
testcase_19 AC 583 ms
49,856 KB
testcase_20 AC 580 ms
49,124 KB
testcase_21 AC 558 ms
49,748 KB
testcase_22 AC 566 ms
49,380 KB
testcase_23 AC 585 ms
49,540 KB
testcase_24 AC 595 ms
49,172 KB
testcase_25 AC 585 ms
49,884 KB
testcase_26 AC 585 ms
49,276 KB
testcase_27 AC 576 ms
49,724 KB
testcase_28 AC 589 ms
49,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def solve do
    x = IO.gets("") |> Integer.parse |> elem(0)
    cond do
      rem(x, 400) === 0 ->
        "Yes"
      rem(x, 100) !== 0 && rem(x, 4) === 0 ->
        "Yes"
      true ->
        "No"
    end
  end
  def main do
      IO.puts(solve())
  end
end

0