結果
| 問題 |
No.1005 BOT対策
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-19 01:23:08 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 309 bytes |
| コンパイル時間 | 771 ms |
| コンパイル使用メモリ | 82,360 KB |
| 実行使用メモリ | 59,356 KB |
| 最終ジャッジ日時 | 2024-12-17 13:42:43 |
| 合計ジャッジ時間 | 2,515 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 WA * 3 |
ソースコード
S = input()
T = input()
if len(T)==1:
print(-1)
exit()
i = 0
j = 0
cnt = 0
while i<len(S):
if S[i]!=T[j]:
if j==0:
i+=1
else:
j=0
else:
if j==len(T)-1:
cnt+=1
j=0
else:
i+=1
j+=1
print(cnt)