結果

問題 No.1909 Detect from Substrings
ユーザー Eki1009Eki1009
提出日時 2022-04-22 21:06:51
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 99,700 KB
最終ジャッジ日時 2023-09-06 07:19:48
合計ジャッジ時間 8,237 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,028 KB
testcase_01 AC 68 ms
71,324 KB
testcase_02 AC 71 ms
71,516 KB
testcase_03 AC 69 ms
71,380 KB
testcase_04 AC 73 ms
71,260 KB
testcase_05 AC 80 ms
71,324 KB
testcase_06 AC 87 ms
75,568 KB
testcase_07 AC 89 ms
75,328 KB
testcase_08 AC 204 ms
99,216 KB
testcase_09 AC 194 ms
99,420 KB
testcase_10 AC 127 ms
83,468 KB
testcase_11 AC 121 ms
83,712 KB
testcase_12 AC 96 ms
71,372 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
S = [input() for _ in range(n)]
T = set([chr(i+ord("a"))+S[0] for i in range(26)]+[S[0]+chr(i+ord("a")) for i in range(26)])
ans = sum(all(s in t for s in S) for t in T)
print(ans)
0