简单的a+b题解 摘要:解题思路:注意事项:参考代码:while True:#while True 语句中一定要有结束该循环的break语句,否则会一直循环下去的 try: #Python 中,用try except…… 题解列表 2021年09月12日 0 点赞 0 评论 2462 浏览 评分:8.8
输出a+b - python 摘要:解题思路:首先input输入两个int型整数,然后求和打印出来注意事项:while可以一直循环参考代码:while True: a,b = map(int,input().split()) …… 题解列表 2021年03月26日 0 点赞 0 评论 1299 浏览 评分:7.0
[竞赛入门]简单的a+b-题解(Python代码) 摘要:解题思路:注意事项:while True,让它能循环运行(自己就错在这里)参考代码:while True: a, b = map(int, input().split()) print(a…… 题解列表 2021年02月18日 0 点赞 0 评论 1014 浏览 评分:5.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 评论 769 浏览 评分:0.0
[竞赛入门]简单的a+b-题解(Python代码) ```python#这种方式输入了2个int型的数字,split()代表以空格隔开。whileTrue:a,b=map(int,input().split())print(a+b)``` 题解列表 2021年01月11日 0 点赞 0 评论 1260 浏览 评分:4.5
[竞赛入门]简单的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 评论 3403 浏览 评分:8.0
[竞赛入门]简单的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 评论 2789 浏览 评分:8.0
[竞赛入门]简单的a+b-题解(Python代码) 摘要:``` while True: try: a,b = map(int, input().strip().split()) if a > 2**10 or…… 题解列表 2019年12月08日 0 点赞 0 评论 2203 浏览 评分:7.1