結果

問題 No.164 ちっちゃくないよ!!
ユーザー roiti46roiti46
提出日時 2015-03-13 02:04:27
言語 Python2
(2.7.18)
結果
AC  
実行時間 23 ms / 2,000 ms
コード長 301 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-04-21 15:21:44
合計ジャッジ時間 667 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,016 KB
testcase_01 AC 10 ms
6,272 KB
testcase_02 AC 10 ms
6,144 KB
testcase_03 AC 10 ms
6,272 KB
testcase_04 AC 10 ms
6,016 KB
testcase_05 AC 23 ms
6,144 KB
testcase_06 AC 22 ms
6,272 KB
testcase_07 AC 15 ms
6,144 KB
testcase_08 AC 18 ms
6,144 KB
testcase_09 AC 17 ms
6,272 KB
testcase_10 AC 11 ms
6,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
ref = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"

N = int(raw_input())
ans = 10**32
for loop in xrange(N):
    v = raw_input()
    base = 1
    for vi in v:
        base = max(base, ref.index(vi)+1)
    ans = min(ans, sum(ref.index(v[-i-1])*base**i for i in xrange(len(v))))
print ans    
0