結果
| 問題 |
No.164 ちっちゃくないよ!!
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-13 17:15:07 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 2,000 ms |
| コード長 | 395 bytes |
| コンパイル時間 | 118 ms |
| コンパイル使用メモリ | 37,272 KB |
| 実行使用メモリ | 22,272 KB |
| 最終ジャッジ日時 | 2024-11-13 17:15:16 |
| 合計ジャッジ時間 | 961 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 13 NOV 2024 05:15:11 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.018
ソースコード
(defun char-code-max (a b)
(if (char>= a b) a b))
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((n (read))
(res 9876543219876543210))
(dotimes (_ n)
(let* ((v (read-line))
(base (1+ (parse-integer (string (reduce #'char-code-max v)) :radix 36))))
(setq res (min res (parse-integer v :radix base)))))
(format t "~d~%" res)))
(main)
Common Lisp