用户输出
0
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#5365 | #1051. 相思树 | Time Limit Exceeded | 70 | 4284 ms | 210024 K | Python 3 / 253 B | t330034045 | 2024-04-27 15:05:31 |
A,K,L,R=map(int,input().split())
tree=[A]
A_L,A_R=A,A
while A_L>L:
A_L-=K
tree.append(A_L)
while A_R<R:
A_R+=K
tree.append(A_R)
new_tree=[]
for i in tree:
if L<=i<=R:
new_tree.append(i)
print(len(new_tree))
用户输出
2000001
系统信息
Exited with return code 0