結果

問題 No.164 ちっちゃくないよ!!
コンテスト
ユーザー Common Lisp
提出日時 2024-11-13 17:15:07
言語 Common Lisp
(sbcl 2.6.3)
コンパイル:
sbclc _filename_
実行:
sbcl --script Main.fasl
結果
AC  
実行時間 10 ms / 2,000 ms
コード長 395 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 120 ms
コンパイル使用メモリ 36,188 KB
実行使用メモリ 22,656 KB
最終ジャッジ日時 2026-05-09 14:12:27
合計ジャッジ時間 1,583 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 09 MAY 2026 02:12:24 PM):

; wrote /home/judge/data/code/Main.fasl
; compilation finished in 0:00:00.045

ソースコード

diff #
raw source code

(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)
0