結果

問題 No.164 ちっちゃくないよ!!
ユーザー steek79steek79
提出日時 2015-11-19 13:19:39
言語 Python2
(2.7.18)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 6,948 KB
実行使用メモリ 6,528 KB
最終ジャッジ日時 2024-04-21 15:27:48
合計ジャッジ時間 759 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = input()

smallest = 10**20
for loop in xrange(N):
    S = raw_input()
    base = 36
    while True:
        try:
            int(S, base)
            base -= 1
        except:
            break
    base += 1
    smallest = min(smallest, int(S, base))

print smallest
0