1085: A+B for Input-Output Practice (I) 摘要:解题思路:这题其实谁都会做,主要是要看出题目里的要求:“with one line of output for each line in input”,也就是要用EOF来结束注意事项:输出时别忘记换行…… 题解列表 2022年01月27日 0 点赞 4 评论 1086 浏览 评分:9.9
A+B from beiqiao(C++) 摘要:#include<iostream> using namespace std; int main() { int a,b; while(cin>>a>>b) //编译器…… 题解列表 2022年01月23日 0 点赞 0 评论 140 浏览 评分:0.0
A+B for Input-Output Practice (I) 摘要:解题思路:队列的思想注意事项:参考代码:#include<stdio.h> #include<stdlib.h> typedef struct ST { struct ST* next…… 题解列表 2022年01月21日 0 点赞 1 评论 776 浏览 评分:9.9
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 评论 134 浏览 评分:0.0
1085 我爱你C语言简洁扼要 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while(~scanf("%d %d",&a,&b)) {printf("%d\n",a+…… 题解列表 2021年11月05日 0 点赞 0 评论 276 浏览 评分:0.0
一行!一行!一行!一行!一行!一行! 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;main(){ for(int a,b;cin>>a>>b;cout<<(a+b)<<end…… 题解列表 2021年07月04日 0 点赞 0 评论 171 浏览 评分:0.0
题目 1085: A+B for Input-Output Practice (I)(C语言) 摘要:解题思路:还是多组数据进行测试a+b。我们可以通过循环来处理这个问题,我开始考虑的是用while=1进行循环处理,但输出超限 。所以我们反过来想让while中输入的不等于负数就解决了问题。注意事项:输…… 题解列表 2021年05月23日 0 点赞 0 评论 177 浏览 评分:0.0
1085: A+B for Input-Output Practice (I) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; while(scanf("%d%d",&a,&b)==2) printf("%d\n",a…… 题解列表 2021年03月01日 0 点赞 0 评论 105 浏览 评分:0.0
A+B for Input-Output Practice (I)-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b; while(~scanf("%d%d", &a, &b))prin…… 题解列表 2021年01月30日 0 点赞 0 评论 162 浏览 评分:0.0
A+B for Input-Output Practice (I)-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int a,b,c,d; int sum; scanf("%d%d",&…… 题解列表 2020年09月14日 0 点赞 0 评论 191 浏览 评分:0.0