結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-23 12:17:41 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 358 bytes |
| コンパイル時間 | 1,865 ms |
| コンパイル使用メモリ | 34,800 KB |
| 実行使用メモリ | 27,676 KB |
| 最終ジャッジ日時 | 2025-03-23 12:17:44 |
| 合計ジャッジ時間 | 1,864 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 8 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 23 MAR 2025 12:17:41 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.072
ソースコード
(defparameter I (read-from-string (concatenate 'string "(" (read-line) ")")))
;(print I)
(defparameter N (nth 0 I))
(defparameter H (nth 1 I))
(defparameter M (nth 2 I))
(defparameter TT (nth 3 I))
(setq N (decf N))
(setq TT (* TT N))
(setq M (+ M TT))
(setq H (+ H (floor M 60)))
(setq H (+ H (floor H 24)))
(setq M (mod M 60))
(format 't "~d~%~d~%" H M)