結果
問題 |
No.1005 BOT対策
|
ユーザー |
![]() |
提出日時 | 2020-03-08 20:25:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 375 bytes |
コンパイル時間 | 124 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-07 16:38:50 |
合計ジャッジ時間 | 1,905 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 8 RE * 1 |
ソースコード
s = input() t = input() ans = 0 if len(t) == 1: if t[0] in list(s): print(-1) else: pass for i in range(len(s)): for j in range(len(t)): if not t[j] == s[i+j]: break else: pass if j == len(t)-1: ans += 1 s = s[0:i+j] + '.' + s[i+j+1:len(s)] #print(s) print(ans)