小白python系列-简单的a+b 摘要:解题思路:简单的a+b注意事项:我将其写成小白都学的会的那种参考代码:while True:try:a,b=map(int,input().strip().split())print(a+b)exce…… 题解列表 2025年07月30日 0 点赞 0 评论 355 浏览 评分:0.0
python编写a+b 摘要:解题思路:用while语句让它一直循环,不然直接打印会只对百分之五十。while语句有始有终,需要用break跳出注意事项:注意代码前面空格的位置参考代码:while True: try: …… 题解列表 2023年11月13日 1 点赞 0 评论 1092 浏览 评分:0.0
Python第一天1 a + b 摘要:解题思路: 本来可能会出现多个空格的情况,但是想着还是算了,否则的话,可以使用正则表达式,但是没有必要注意事项:这道题不是很严谨参考代码:while True: str1 = input()…… 题解列表 2022年03月31日 0 点赞 0 评论 452 浏览 评分:0.0
note an easy problem2 摘要:哈哈哈#includeint main(){ int strcpy_my(int n, char c[], int m); int n, m; char a[100]; sca…… 题解列表 2021年02月15日 0 点赞 1 评论 400 浏览 评分:0.0
[竞赛入门]简单的a+b-题解(Python代码) 摘要:```python #这种方式输入了2个int型的数字,split()代表以空格隔开。 while True: a,b = map(int,input().split()) p…… 题解列表 2021年01月11日 0 点赞 0 评论 929 浏览 评分:4.5
[竞赛入门]简单的a+b-题解(Python代码) 摘要:解题思路:注意事项:while True,让它能循环运行(自己就错在这里)参考代码:while True: a, b = map(int, input().split()) print(a…… 题解列表 2021年02月18日 0 点赞 0 评论 645 浏览 评分:5.5
1000: [竞赛入门]简单的a+b 摘要:参考代码:while True: try: a,b=map(int,input().strip().split()) print(a+b) except: break…… 题解列表 2023年02月11日 0 点赞 0 评论 1492 浏览 评分:6.0
输出a+b - python 摘要:解题思路:首先input输入两个int型整数,然后求和打印出来注意事项:while可以一直循环参考代码:while True: a,b = map(int,input().split())…… 题解列表 2021年03月26日 0 点赞 0 评论 939 浏览 评分:7.0
[竞赛入门]简单的a+b-题解(Python代码) 摘要:``` while True: try: a,b = map(int, input().strip().split()) if a > 2**10 or…… 题解列表 2019年12月08日 0 点赞 0 评论 1622 浏览 评分:7.1
[竞赛入门]简单的a+b 摘要:解题思路:注意事项:参考代码:while True: a,b = map(int,input().split()) if a > 2**10 or b > 2**10: br…… 题解列表 2022年01月16日 0 点赞 0 评论 775 浏览 评分:7.2