結果
問題 |
No.1005 BOT対策
|
ユーザー |
![]() |
提出日時 | 2020-12-15 14:57:08 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 43 ms / 2,000 ms |
コード長 | 216 bytes |
コンパイル時間 | 1,199 ms |
コンパイル使用メモリ | 81,972 KB |
実行使用メモリ | 57,120 KB |
最終ジャッジ日時 | 2025-06-20 01:19:29 |
合計ジャッジ時間 | 3,522 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
S = input() T = input() if len(T)==1 and S.count(T)>0: print(-1) exit() cnt = 0 temp = S.find(T) while temp>=0: S = S[:temp+len(T)-1] + '.' + S[temp+len(T)-1:] temp = S.find(T) cnt+=1 print(cnt)