結果
問題 | No.1994 Confusing Name |
ユーザー | ryusuke |
提出日時 | 2022-07-01 21:54:20 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 392 bytes |
コンパイル時間 | 270 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 93,696 KB |
最終ジャッジ日時 | 2024-05-04 16:18:01 |
合計ジャッジ時間 | 5,528 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 52 ms
66,944 KB |
testcase_01 | AC | 53 ms
62,080 KB |
testcase_02 | AC | 54 ms
62,208 KB |
testcase_03 | AC | 40 ms
51,840 KB |
testcase_04 | AC | 40 ms
51,840 KB |
testcase_05 | AC | 101 ms
76,160 KB |
testcase_06 | AC | 113 ms
76,032 KB |
testcase_07 | AC | 81 ms
75,520 KB |
testcase_08 | AC | 102 ms
76,032 KB |
testcase_09 | AC | 113 ms
76,416 KB |
testcase_10 | AC | 90 ms
75,904 KB |
testcase_11 | AC | 89 ms
76,032 KB |
testcase_12 | TLE | - |
testcase_13 | TLE | - |
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 | -- | - |
ソースコード
n = int(input()) s = [input() for _ in range(n)] p = set() for i in s: p.add(i) for i in range(n): ans = 0 for ind, j in enumerate(s[i]): for alpha in 'abcdefghijklmnopqrstuvwxyz': if j == alpha: continue t = [k for k in s[i]] t[ind] = alpha if "".join(t) in p: ans += 1 print(ans)