結果
| 問題 | No.1005 BOT対策 |
| コンテスト | |
| ユーザー |
nishiwakki
|
| 提出日時 | 2020-03-08 20:19:53 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 293 bytes |
| 記録 | |
| コンパイル時間 | 632 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 20,716 KB |
| 最終ジャッジ日時 | 2026-05-08 00:01:04 |
| 合計ジャッジ時間 | 5,827 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 8 RE * 3 |
ソースコード
s = input()
t = input()
ans = 0
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)
nishiwakki