結果
問題 | No.164 ちっちゃくないよ!! |
ユーザー | あかりき |
提出日時 | 2021-03-01 18:41:25 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 64 ms / 2,000 ms |
コード長 | 327 bytes |
コンパイル時間 | 214 ms |
コンパイル使用メモリ | 82,372 KB |
実行使用メモリ | 68,844 KB |
最終ジャッジ日時 | 2024-04-14 03:46:52 |
合計ジャッジ時間 | 1,494 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 36 ms
54,208 KB |
testcase_01 | AC | 37 ms
53,264 KB |
testcase_02 | AC | 40 ms
52,464 KB |
testcase_03 | AC | 40 ms
52,264 KB |
testcase_04 | AC | 37 ms
52,520 KB |
testcase_05 | AC | 61 ms
67,388 KB |
testcase_06 | AC | 61 ms
68,712 KB |
testcase_07 | AC | 54 ms
65,380 KB |
testcase_08 | AC | 60 ms
68,844 KB |
testcase_09 | AC | 64 ms
67,584 KB |
testcase_10 | AC | 37 ms
52,620 KB |
ソースコード
n=int(input()) v=[list(input()) for i in range(n)] c=[chr(i) for i in range(65, 65+26)] l=[str(i) for i in range(10)]+c ans=[] for i in range(n): x=v[i] y=-1 for j in range(len(x)): y=max(y,l.index(x[j])) y+=1 x.reverse() z=0 for j in range(len(x)): z+=l.index(x[j])*y**j ans.append(z) print(min(ans))