結果
問題 |
No.164 ちっちゃくないよ!!
|
ユーザー |
![]() |
提出日時 | 2016-05-29 06:42:34 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 42 ms / 2,000 ms |
コード長 | 355 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-14 13:31:57 |
合計ジャッジ時間 | 1,064 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
N = int(input()) V = [input() for _ in range(N)] S = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" ans = [] for num in V: num = num.lstrip('0') d = [] for n in num: d.append(S.index(n)) m = max(d) + 1 total = 0 for i, v in enumerate(num, 1): total += S.index(v) * pow(m, len(num)-i) ans.append(total) print(min(ans))