結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
|
提出日時 | 2025-05-03 21:22:35 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 44 ms / 1,000 ms |
コード長 | 313 bytes |
コンパイル時間 | 285 ms |
コンパイル使用メモリ | 28,680 KB |
実行使用メモリ | 27,672 KB |
最終ジャッジ日時 | 2025-05-03 21:22:39 |
合計ジャッジ時間 | 1,706 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 03 MAY 2025 09:22:35 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.005
ソースコード
(defparameter temp (read-from-string (concatenate 'string "(" (read-line) ")"))) (defparameter H (nth 0 temp)) (defparameter W (nth 1 temp)) (defparameter N (nth 2 temp)) (defparameter K (nth 3 temp)) (defparameter amari (mod (* H W) N)) (if (= amari 0) (setq amari N)) (format t (if (= amari K) "YES~%" "NO~%"))