简单的a+b(c语言代码) 摘要:解题思路:定义两个数a和b,然后用scanf语句输入这两个数,最后用printf语句输出a+b注意事项:注意本题要求多组测试数据,使用while(scanf("%d%d",&a,&b)!=EOF)实现…… 题解列表 2022年07月25日 0 点赞 0 评论 372 浏览 评分:9.9
1000: [竞赛入门]简单的a+b(Python代码) 摘要:####**解题思路:** 1.**输入**a,b,用**map**函数实现 2.**while**实现**循环** 3.**try except**实现出现异常时**退…… 题解列表 2022年07月22日 0 点赞 0 评论 1355 浏览 评分:7.4
C++ 题解,初始程序就是答案! 摘要:#include<iostream> using namespace std; int main() { int a,b; while (cin >> a >> b) { …… 题解列表 2022年07月09日 0 点赞 0 评论 222 浏览 评分:0.0
笑死,根本没动,他给的格式就是题解 摘要:解题思路:没有注意事项:没有(别自己乱写,直接用他给的格式参考代码:#include <stdio.h>int main(){ int a,b; while(~scanf("%d%d", …… 题解列表 2022年07月09日 0 点赞 0 评论 539 浏览 评分:9.9
1000: [竞赛入门]简单的a+b 摘要: #include int main() { int a,b; //定义两个变量a,b while(~scanf("%d%d",&a,&b)) //非零则继续循环~…… 题解列表 2022年07月08日 0 点赞 0 评论 274 浏览 评分:9.9
while 连续输入值(简单的a+b) 摘要:解题思路:使用while 语句输入的小技巧注意事项:注意连续输入参考代码:#include<stdio.h>int main(){ int a,b,t; while(scanf("%d %…… 题解列表 2022年07月07日 0 点赞 0 评论 435 浏览 评分:9.9
简单的a+b(C++代码) 摘要:解题思路:首先设置两个加数,再输入,然后算出答案输出注意事项:注意是多组数据提交,要用上while循环,查看是否输入参考代码:#include<iostream>using namespace std…… 题解列表 2022年06月19日 1 点赞 1 评论 498 浏览 评分:9.9
简单的a+b (Java代码) 摘要:import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; impo…… 题解列表 2022年05月28日 1 点赞 0 评论 820 浏览 评分:9.9
1000: [竞赛入门]简单的a+b(c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; while(ci…… 题解列表 2022年05月23日 0 点赞 0 评论 159 浏览 评分:6.0
简单的a+b题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) …… 题解列表 2022年05月15日 0 点赞 0 评论 952 浏览 评分:9.9