結果

問題 No.9010 うるう年判定
ユーザー necy
提出日時 2020-04-02 02:13:05
言語 OCaml
(5.2.1)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 19,820 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-09 00:52:54
合計ジャッジ時間 1,142 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

let () =
    let n = read_int () in
    match (n mod 4) with
        |0 -> if n mod 400 = 0 then print_string "Yes"
              else if n mod 100 = 0 then print_string "No"
              else print_string "Yes"
        |_ -> print_string "No"
0