結果
| 問題 | No.405 ローマ数字の腕時計 |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-10-09 17:30:50 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 2,000 ms |
| コード長 | 345 bytes |
| コンパイル時間 | 108 ms |
| コンパイル使用メモリ | 30,124 KB |
| 実行使用メモリ | 32,152 KB |
| 最終ジャッジ日時 | 2024-10-09 17:30:52 |
| 合計ジャッジ時間 | 1,273 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 09 OCT 2024 05:30:50 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.003
ソースコード
; S1 時から h 時間後の時間を足し 12 で割った余りが S2 時でこれを出力する
(defparameter *roma-number* `(I II III IIII V VI VII VIII IX X XI XII))
(defun main ()
(let* ((s (read))
(h (read))
(indx (mod (+ (position s *roma-number*) h) 12)))
(princ (elt *roma-number* indx))
(terpri)))
(main)
Common Lisp