結果
問題 |
No.296 n度寝
|
ユーザー |
|
提出日時 | 2025-03-23 12:20:22 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 10 ms / 1,000 ms |
コード長 | 350 bytes |
コンパイル時間 | 1,735 ms |
コンパイル使用メモリ | 28,728 KB |
実行使用メモリ | 23,784 KB |
最終ジャッジ日時 | 2025-03-23 12:20:25 |
合計ジャッジ時間 | 1,288 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 23 MAR 2025 12:20:22 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.033
ソースコード
(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)