結果
| 問題 | No.164 ちっちゃくないよ!! |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2021-01-05 00:26:41 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 78 ms / 2,000 ms |
| コード長 | 328 bytes |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 72,960 KB |
| 最終ジャッジ日時 | 2024-10-15 09:05:44 |
| 合計ジャッジ時間 | 1,529 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
def decode(S):
d=max([X.index(s) for s in S])+1
b=1
A=0
for s in S[::-1]:
A+=b*X.index(s)
b*=d
return A
import sys
from string import ascii_uppercase as X
input=sys.stdin.readline
X="0123456789"+X
N=int(input())
M=float("inf")
for _ in range(N):
M=min(M,decode(input()[:-1]))
print(M)
Kazun