题解 | 小红的正整数计数
小红的正整数计数
https://www.nowcoder.com/practice/bf1c0694fdb84d12bc03793dee837117
import sys
l,r = map(int,sys.stdin.readline().strip().split())
count = 0
for num in range(l,r+1):
if num % 2 == 0:
count += 1
print(count)
小红的正整数计数
https://www.nowcoder.com/practice/bf1c0694fdb84d12bc03793dee837117
import sys
l,r = map(int,sys.stdin.readline().strip().split())
count = 0
for num in range(l,r+1):
if num % 2 == 0:
count += 1
print(count)
相关推荐
redf1sh:默认会git结果发现真不会,这种一看就是没做过项目的,真做过项目的至少会提交