結果

問題 No.166 マス埋めゲーム
ユーザー Rin
提出日時 2015-09-04 20:48:06
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 23 ms / 1,000 ms
コード長 304 bytes
コンパイル時間 45 ms
コンパイル使用メモリ 6,948 KB
実行使用メモリ 16,000 KB
最終ジャッジ日時 2024-07-18 23:44:50
合計ジャッジ時間 1,398 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (System.out.println x)
  (begin
    (display x)
    (newline)
  )
)

(let (
      (H (read))
      (W (read))
      (N (read))
      (K (read))
     )
  (if (or (= K (modulo (* H W) N)) (and (= K N) (= (modulo (* H W) N) 0)))
      (System.out.println "YES")
      (System.out.println "NO")
  )
)
0