結果
| 問題 | No.164 ちっちゃくないよ!! |
| コンテスト | |
| ユーザー |
ohana
|
| 提出日時 | 2023-11-24 10:54:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 2,000 ms |
| コード長 | 262 bytes |
| コンパイル時間 | 327 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 65,792 KB |
| 最終ジャッジ日時 | 2024-09-26 08:34:51 |
| 合計ジャッジ時間 | 1,389 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
n = int(input())
A = [list(input()) for i in range(n)]
d = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
def calc(s: str):
mx = max(s)
res = 0
for c in s:
res *= d.find(mx) + 1
res += d.find(c)
return res
print(min(map(calc, A)))
ohana