結果

問題 No.9010 うるう年判定
ユーザー keiden
提出日時 2024-09-12 21:29:13
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 460 bytes
コンパイル時間 58 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 28,544 KB
最終ジャッジ日時 2024-09-12 21:29:55
合計ジャッジ時間 4,203 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

(import
  (scheme base)
  (scheme read)
  (scheme write)
)


(define yuki9010
  (let*
    (
      (n (read))
      (n-mod-400 (modulo n 400))
      (n-mod-100 (modulo n 100))
      (n-mod-4   (modulo n 4))
    )
    (display
      (cond
        ((zero? n-mod-400)
          "Yes\n"
        )
        ((zero? n-mod-100)
          "No\n"
        )
        ((zero? n-mod-4)
          "Yes\n"
        )
        (else
          "No\n"
        )
      )
    )
  )
)
0