結果

問題 No.164 ちっちゃくないよ!!
ユーザー convexineqconvexineq
提出日時 2020-12-09 03:28:16
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 81,624 KB
実行使用メモリ 68,328 KB
最終ジャッジ日時 2023-10-19 04:33:19
合計ジャッジ時間 1,516 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
53,352 KB
testcase_01 AC 43 ms
53,352 KB
testcase_02 AC 41 ms
53,352 KB
testcase_03 AC 39 ms
53,352 KB
testcase_04 AC 40 ms
53,352 KB
testcase_05 AC 63 ms
66,104 KB
testcase_06 AC 66 ms
68,328 KB
testcase_07 AC 58 ms
64,216 KB
testcase_08 AC 68 ms
68,328 KB
testcase_09 AC 66 ms
68,328 KB
testcase_10 AC 40 ms
53,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(s):
    r = []
    for i in s:
        if i.isupper():
            r.append(ord(i)-55)
        else:
            r.append(int(i))
    p = max(r)+1
    x = 0
    for i in r:
        x = x*p+i
    return x

n = int(input())
print(min(solve(input()) for _ in range(n)))
0