题目 1085: A+B for Input-Output Practice (I)(C语言) 摘要:解题思路:还是多组数据进行测试a+b。我们可以通过循环来处理这个问题,我开始考虑的是用while=1进行循环处理,但输出超限 。所以我们反过来想让while中输入的不等于负数就解决了问题。注意事项:输…… 题解列表 2021年05月23日 0 点赞 0 评论 561 浏览 评分:0.0
一行!一行!一行!一行!一行!一行! 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;main(){ for(int a,b;cin>>a>>b;cout<<(a+b)<<end…… 题解列表 2021年07月04日 0 点赞 0 评论 522 浏览 评分:0.0
A+B for Input-Output Practice (I)-题解(C++代码) 摘要:解题思路: 为避免题目可能的一些坑(比如输入数字大于int表示的范围),特地使用了long long int注意事项: #define 语句 可以 将代码中 LL 换成 l…… 题解列表 2020年09月10日 0 点赞 0 评论 1453 浏览 评分:0.0
1085: A+B for Input-Output Practice (I) 摘要:无脑打印,没啥可说的。#include<bits/stdc++.h> using namespace std; int main(){ int a,b; while(ci…… 题解列表 2021年12月15日 0 点赞 0 评论 452 浏览 评分:0.0
A+B from beiqiao(C++) 摘要:#include<iostream> using namespace std; int main() { int a,b; while(cin>>a>>b) //编译器…… 题解列表 2022年01月23日 0 点赞 0 评论 407 浏览 评分:0.0
A+B for Input-Output Practice (I) 摘要: ```cpp #include using namespace std; int main() { int a,b; while(cin>>a>>b) cout…… 题解列表 2022年03月05日 0 点赞 0 评论 516 浏览 评分:0.0
编写题解 1085: A+B for Input-Output Practice (I) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while (scanf("%d %d",&a,&b)!=EOF) { …… 题解列表 2022年03月19日 0 点赞 0 评论 501 浏览 评分:0.0
A+B for Input-Output Practice (I) 题解 摘要:解题思路:不就是加法嘛!弄了个英文就不会了?注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a,b;int main(){ …… 题解列表 2022年05月07日 0 点赞 0 评论 540 浏览 评分:0.0
1085——————A+B for Input-Output Practice (I) 摘要:题目:1085: A+B for Input-Output Practice (I) **题目描述** Your task is to Calculate a + b. Too easy?! Of…… 题解列表 2022年08月20日 0 点赞 0 评论 631 浏览 评分:0.0
A+B for Input-Output Practice (I) 摘要:解题思路:EOF表示为文件结束符注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while (scanf("%d %d",&a,&b)!=E…… 题解列表 2022年11月01日 0 点赞 0 评论 501 浏览 评分:0.0