結果
| 問題 |
No.1994 Confusing Name
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2022-07-01 21:49:43 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 335 bytes |
| コンパイル時間 | 281 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 1,060,664 KB |
| 最終ジャッジ日時 | 2024-11-26 04:43:01 |
| 合計ジャッジ時間 | 52,367 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 MLE * 1 |
| other | AC * 7 TLE * 7 MLE * 14 |
ソースコード
import string
import collections
N = int(input())
S = []
CA = collections.Counter()
for _ in range(N):
S.append(input())
alphabets = list(string.ascii_lowercase)
for s in S:
s = 'a'+s+'a'
for i in range(1,len(s)-1):
for a in alphabets:
CA[s[:i]+a+s[i+1:]]+=1
for s in S:
print(CA['a'+s+'a']-len(s))
H20