[竞赛入门]简单的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
[竞赛入门]简单的a+b-题解(Python代码) ```pythonwhileTrue:num1=list(map(int,input().split()))n1=len(num1)sum1=0foriinrange(0,n1):if(num1[i] 题解列表 2020年04月01日 0 点赞 0 评论 2782 浏览 评分:8.0
[竞赛入门]简单的a+b-题解(双题解,Python代码) 题解一:```pythonwhileTrue:#whileTrue语句中一定要有结束该循环的break语句,否则会一直循环下去的try:#Python中,用tryexcept语句块捕获并处理异常a,b=map(int,input().strip().split())ifa>2**10orb>2**10 题解列表 2020年09月26日 0 点赞 0 评论 3400 浏览 评分:8.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
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代码) 摘要:解题思路:注意事项:while True,让它能循环运行(自己就错在这里)参考代码:while True: a, b = map(int, input().split()) print(a…… 题解列表 2021年02月18日 0 点赞 0 评论 1011 浏览 评分:5.5
输出a+b - python 摘要:解题思路:首先input输入两个int型整数,然后求和打印出来注意事项:while可以一直循环参考代码:while True: a,b = map(int,input().split()) …… 题解列表 2021年03月26日 0 点赞 0 评论 1296 浏览 评分:7.0
简单的a+b题解 摘要:解题思路:注意事项:参考代码:while True:#while True 语句中一定要有结束该循环的break语句,否则会一直循环下去的 try: #Python 中,用try except…… 题解列表 2021年09月12日 0 点赞 0 评论 2459 浏览 评分:8.8
[竞赛入门]简单的a+b 摘要:解题思路:注意事项:参考代码:while True: a,b = map(int,input().split()) if a > 2**10 or b > 2**10: br…… 题解列表 2022年01月16日 0 点赞 0 评论 1060 浏览 评分:7.2
Python第一天1 a + b 摘要:解题思路: 本来可能会出现多个空格的情况,但是想着还是算了,否则的话,可以使用正则表达式,但是没有必要注意事项:这道题不是很严谨参考代码:while True: str1 = input()…… 题解列表 2022年03月31日 0 点赞 0 评论 819 浏览 评分:0.0