結果
問題 |
No.1005 BOT対策
|
ユーザー |
![]() |
提出日時 | 2023-05-06 08:20:38 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 196 bytes |
コンパイル時間 | 205 ms |
コンパイル使用メモリ | 82,056 KB |
実行使用メモリ | 53,788 KB |
最終ジャッジ日時 | 2024-11-23 18:15:47 |
合計ジャッジ時間 | 2,943 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 WA * 3 |
ソースコード
s =input() t =input() if len(t) == 1: print(-1) exit() i=0 cnt=0 while i < len(s): if s[i:i+len(t)] == t: cnt+=1 i = i + len(t) - 1 else: i += 1 print(cnt)