結果

問題 No.1994 Confusing Name
ユーザー tonyu0
提出日時 2022-07-01 23:36:50
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 263 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 400,796 KB
最終ジャッジ日時 2024-11-26 07:36:59
合計ジャッジ時間 52,777 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 12 TLE * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
from string import ascii_lowercase
n,*s=open(0).read().split()
n=int(n)
d=defaultdict(int)
for t in s:
	d[t]+=1
print(*[sum(d[t[:i]+c+t[i+1:]] if t[i]!=c else 0 for i in range(len(t))for c in list(ascii_lowercase)) for t in s])
0