啊这,奇奇怪怪的做法,当年 noip 可没有 Python,不用太在意这种过法的合理性,也说不上数据弱。
确实可以再加几组更像样的数据。
by Terrible @ 2023-11-03 08:24:47
```
That
Do you know that that that that that student wrote on the blackboard was wrong
```
by Terrible @ 2023-11-03 08:28:35
你的程序好像还是对的。。。
by Terrible @ 2023-11-03 08:30:04
```python
a = ' '+input().upper()+' '
b = ' '+input().upper()+' '
c=b.replace(' ',' ')
cnt1 = c.count(a)
if cnt1==0:
print('-1')
else:
print(cnt1,b.find(a))
```
可以在每个字符串空格中间再加一个空格,这样就不会导致重叠阅读了
by lly0329 @ 2023-12-19 22:38:24