結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 589 ms
49,276 KB
testcase_01 AC 591 ms
49,816 KB
testcase_02 AC 595 ms
49,832 KB
testcase_03 AC 576 ms
49,688 KB
testcase_04 AC 591 ms
49,208 KB
testcase_05 AC 588 ms
49,740 KB
testcase_06 AC 595 ms
49,112 KB
testcase_07 AC 578 ms
49,076 KB
testcase_08 AC 576 ms
49,056 KB
testcase_09 AC 577 ms
49,260 KB
testcase_10 AC 565 ms
49,136 KB
testcase_11 AC 559 ms
49,228 KB
testcase_12 AC 560 ms
49,276 KB
testcase_13 AC 582 ms
49,188 KB
testcase_14 AC 583 ms
48,996 KB
testcase_15 AC 586 ms
49,236 KB
testcase_16 AC 585 ms
49,136 KB
testcase_17 AC 566 ms
49,436 KB
testcase_18 AC 586 ms
49,684 KB
testcase_19 AC 595 ms
49,288 KB
testcase_20 AC 569 ms
49,188 KB
testcase_21 AC 581 ms
49,852 KB
testcase_22 AC 587 ms
49,232 KB
testcase_23 AC 584 ms
49,148 KB
testcase_24 AC 586 ms
49,800 KB
testcase_25 AC 584 ms
49,268 KB
testcase_26 AC 582 ms
49,424 KB
testcase_27 AC 592 ms
49,228 KB
testcase_28 AC 594 ms
49,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

0