题解 | 小红的正整数计数

小红的正整数计数

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)

全部评论

相关推荐

03-31 21:47
东南大学 C++
彭于晏前来求offe...:吓晕了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务