結果
問題 | No.1994 Confusing Name |
ユーザー |
![]() |
提出日時 | 2024-08-25 20:12:52 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 344 bytes |
コンパイル時間 | 263 ms |
コンパイル使用メモリ | 82,376 KB |
実行使用メモリ | 130,236 KB |
最終ジャッジ日時 | 2024-08-25 20:13:00 |
合計ジャッジ時間 | 5,334 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 TLE * 2 -- * 17 |
ソースコード
n=int(input())ss=[]d={}for i in range(n):s=list(input())if tuple(s) not in d:d[tuple(s)]=0d[tuple(s)]+=1ss+=[s]for i in range(n):s=ss[i]c=0for j in range(len(s)):t=s[j]for k in range(26):s[j]=chr(k+ord("a"))if tuple(s) in d:c+=d[tuple(s)]*(chr(k+ord("a"))!=t)s[j]=tprint(c)