1000: [竞赛入门]简单的a+b(c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; while(ci…… 题解列表 2022年05月23日 0 点赞 0 评论 243 浏览 评分:6.0
1000: [竞赛入门]简单的a+b 摘要:参考代码:while True: try: a,b=map(int,input().strip().split()) print(a+b) except: break…… 题解列表 2023年02月11日 0 点赞 0 评论 1630 浏览 评分:6.0
[竞赛入门]简单的a+b 摘要:解题思路:懒得写注意事项:无参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)…… 题解列表 2023年05月17日 0 点赞 2 评论 215 浏览 评分:6.0
[竞赛入门]简单的a+b-题解(Python代码) 摘要:解题思路:注意事项:while True,让它能循环运行(自己就错在这里)参考代码:while True: a, b = map(int, input().split()) print(a…… 题解列表 2021年02月18日 0 点赞 0 评论 739 浏览 评分:5.5
简单的a+b (C++语言代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) cout<<a+b…… 题解列表 2017年09月06日 0 点赞 0 评论 1352 浏览 评分:5.4
小白python系列-简单的a+b 摘要:解题思路:简单的a+b注意事项:我将其写成小白都学的会的那种参考代码:while True:try:a,b=map(int,input().strip().split())print(a+b)exce…… 题解列表 2025年07月30日 4 点赞 2 评论 1538 浏览 评分:5.4
简单的a+b (Java代码) 摘要:解题思路:建立类,然后再创建两个变量,最后将他们加起来即可 注意事项:注意在最后将n变量闭合,不然会出现警告,虽然不影响正常程序的运行,但在以后的代码路程中,良好的习惯还是非常的重要的参考代码:im…… 题解列表 2017年11月23日 2 点赞 1 评论 1122 浏览 评分:5.0
[竞赛入门]简单的a+b-题解(C++代码) 摘要:不多说了。。。 ```cpp #include using namespace std; int main() { int a,b; cin>>a>>b; cou…… 题解列表 2020年09月13日 0 点赞 0 评论 543 浏览 评分:4.7
[竞赛入门]简单的a+b-题解(Python代码) 摘要:```python #这种方式输入了2个int型的数字,split()代表以空格隔开。 while True: a,b = map(int,input().split()) p…… 题解列表 2021年01月11日 0 点赞 0 评论 1006 浏览 评分:4.5
[竞赛入门]简单的a+b-题解(Java代码) 摘要: import java.util.Scanner; public class Main { public static void main(String[] …… 题解列表 2019年12月03日 0 点赞 0 评论 1348 浏览 评分:4.0