結果

問題 No.164 ちっちゃくないよ!!
ユーザー steek79steek79
提出日時 2015-11-19 12:48:06
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 445 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 6,656 KB
実行使用メモリ 6,156 KB
最終ジャッジ日時 2023-10-11 18:03:25
合計ジャッジ時間 1,051 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,984 KB
testcase_01 AC 12 ms
6,028 KB
testcase_02 AC 12 ms
6,056 KB
testcase_03 AC 12 ms
6,112 KB
testcase_04 AC 11 ms
5,992 KB
testcase_05 AC 12 ms
6,156 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 12 ms
5,928 KB
testcase_09 WA -
testcase_10 AC 11 ms
6,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()

#numbering = -1
smallest = 'Z' * 12

for loop in xrange(N):
    S = raw_input()
    #numbering = max(max(S), numbering)
    if len(S) == len(smallest):
        smallest = min(S, smallest)
    elif len(S) < len(smallest):
        smallest = S
    #print S, numbering, smallest

base = 36
while True:
    try:
        int(smallest, base)
        base -= 1
    except:
        base += 1
        print int(smallest, base)
        break
0