結果
問題 | No.1994 Confusing Name |
ユーザー | Kiri8128 |
提出日時 | 2022-07-01 21:32:47 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 400 bytes |
コンパイル時間 | 134 ms |
コンパイル使用メモリ | 82,132 KB |
実行使用メモリ | 650,416 KB |
最終ジャッジ日時 | 2024-05-04 15:43:24 |
合計ジャッジ時間 | 4,686 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 36 ms
66,356 KB |
testcase_01 | AC | 38 ms
60,792 KB |
testcase_02 | AC | 41 ms
62,540 KB |
testcase_03 | AC | 35 ms
52,084 KB |
testcase_04 | AC | 35 ms
53,068 KB |
testcase_05 | AC | 80 ms
89,140 KB |
testcase_06 | AC | 116 ms
99,632 KB |
testcase_07 | AC | 65 ms
78,512 KB |
testcase_08 | AC | 97 ms
94,132 KB |
testcase_09 | AC | 117 ms
103,200 KB |
testcase_10 | AC | 84 ms
87,816 KB |
testcase_11 | AC | 85 ms
87,760 KB |
testcase_12 | MLE | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
ソースコード
alp = "abcdefghijklmnopqrstuvwxyz" N = int(input()) X = [] D = {} for _ in range(N): a = input() l = len(a) for i in range(l): for s in alp: b = a[:i] + s + a[i+1:] if b in D: D[b] += 1 else: D[b] = 1 X.append(a) if 0: print("a =", a) print("D =", D) for x in X: print(D[x] - len(x))