結果
| 問題 | No.164 ちっちゃくないよ!! |
| コンテスト | |
| ユーザー |
ohana
|
| 提出日時 | 2023-11-24 10:54:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 2,000 ms |
| コード長 | 262 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 84,864 KB |
| 実行使用メモリ | 65,792 KB |
| 最終ジャッジ日時 | 2026-04-13 11:55:59 |
| 合計ジャッジ時間 | 1,558 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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