結果
| 問題 | No.1994 Confusing Name |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2022-07-01 21:49:43 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 335 bytes |
| 記録 | |
| コンパイル時間 | 391 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 786,400 KB |
| 最終ジャッジ日時 | 2026-05-20 16:18:33 |
| 合計ジャッジ時間 | 5,061 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 MLE * 1 -- * 18 |
ソースコード
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