結果

問題 No.164 ちっちゃくないよ!!
コンテスト
ユーザー 🍡yurahuna
提出日時 2015-12-21 22:55:06
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 395 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 77,704 KB
最終ジャッジ日時 2025-12-03 18:51:31
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
N = input()
numbers = []
for i in xrange(N):
    numbers.append(raw_input())
min_num = float("inf")
for s in numbers:
    #decimal_digits = [digits.index(x) for x in s]
    decimal_digits = [digits.find(x) for x in s]
    base = max(decimal_digits)+1
    temp_num = int(s, base)
    if temp_num <= min_num:
        min_num = temp_num
print min_num
0