[竞赛入门]简单的a+b 解题思路:注意事项:参考代码:whileTrue:try:a,b=map(int,input().split())if0 题解列表 2026年09月23日 0 点赞 0 评论 69 浏览 评分:0.0
python编写a+b 摘要:解题思路:用while语句让它一直循环,不然直接打印会只对百分之五十。while语句有始有终,需要用break跳出注意事项:注意代码前面空格的位置参考代码:while True: try: …… 题解列表 2023年11月13日 3 点赞 0 评论 1600 浏览 评分:0.0
Python第一天1 a + b 摘要:解题思路: 本来可能会出现多个空格的情况,但是想着还是算了,否则的话,可以使用正则表达式,但是没有必要注意事项:这道题不是很严谨参考代码:while True: str1 = input()…… 题解列表 2022年03月31日 0 点赞 0 评论 819 浏览 评分: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 评论 763 浏览 评分:0.0
[竞赛入门]简单的a+b-题解(Python代码) ```python#这种方式输入了2个int型的数字,split()代表以空格隔开。whileTrue:a,b=map(int,input().split())print(a+b)``` 题解列表 2021年01月11日 0 点赞 0 评论 1255 浏览 评分:4.5
小白python系列-简单的a+b 解题思路:简单的a+b注意事项:我将其写成小白都学的会的那种参考代码:whileTrue:try:a,b=map(int,input().strip().split())print(a+b)except:break 题解列表 2025年07月30日 5 点赞 2 评论 2188 浏览 评分:5.4
[竞赛入门]简单的a+b-题解(Python代码) 摘要:解题思路:注意事项:while True,让它能循环运行(自己就错在这里)参考代码:while True: a, b = map(int, input().split()) print(a…… 题解列表 2021年02月18日 0 点赞 0 评论 1011 浏览 评分:5.5
1000: [竞赛入门]简单的a+b 参考代码:whileTrue:try:a,b=map(int,input().strip().split())print(a+b)except:break 题解列表 2023年02月11日 1 点赞 0 评论 1950 浏览 评分:6.0
输出a+b - python 摘要:解题思路:首先input输入两个int型整数,然后求和打印出来注意事项:while可以一直循环参考代码:while True: a,b = map(int,input().split()) …… 题解列表 2021年03月26日 0 点赞 0 评论 1296 浏览 评分: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 评论 2197 浏览 评分:7.1