编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#1306 | #995. 盲僧伤害? | Time Limit Exceeded | 0 | 1009 ms | 2808 K | Python 3 / 447 B | t330034057 | 2023-10-15 16:05:23 |
count=0
for i in range (12345678,98765433):
s=str(i)
for j in range (0,5):
if s[j]!= '4':
count += 1
elif s[j]=='4':
if '3'not in s[j:6]:
count += 1
else:
if '9'not in s[j+2:7]:
count += 1
else :
if '6' not in s[j+3:8]:
count += 1
print (count)