結果
| 問題 | No.164 ちっちゃくないよ!! |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-13 17:15:07 |
| 言語 | Common Lisp (sbcl 2.6.7) |
| 結果 |
AC
不安定
|
| 実行時間 | 7 ms / 2,000 ms |
| + 228µs | |
| コード長 | 395 bytes |
| 記録 | |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 35,744 KB |
| 実行使用メモリ | 27,708 KB |
| 最終ジャッジ日時 | 2026-09-21 19:49:31 |
| 合計ジャッジ時間 | 1,205 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 21 SEP 2026 07:49:28 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.041
ソースコード
(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