結果
| 問題 | No.296 n度寝 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-23 12:20:22 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
AC
|
| 実行時間 | 6 ms / 1,000 ms |
| コード長 | 350 bytes |
| 記録 | |
| コンパイル時間 | 86 ms |
| コンパイル使用メモリ | 32,380 KB |
| 実行使用メモリ | 27,696 KB |
| 最終ジャッジ日時 | 2026-07-07 20:45:04 |
| 合計ジャッジ時間 | 1,337 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 07 JUL 2026 08:45:02 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.040
ソースコード
(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 (mod H 24))
(setq M (mod M 60))
(format 't "~d~%~d~%" H M)