[ gczdac ] HDU1000】的更多相关文章

地址:http://acm.hdu.edu.cn/showproblem.php?pid=1000   Problem Description Calculate A + B.   Input Each line will contain two integers A and B. Process to end of file.   Output For each case, output A + B in one line.   Sample Input 1 1   Sample Output…
hdu1000 仅仅是为了纪念 #include <cstdio> int main() { int a,b; while (scanf("%d%d",&a,&b)!=EOF) { printf("%d\n",a+b); } ; } hdu1001 题目说n*(n+1)/2 不不会爆 但是没和你说n*(n+1)不会爆 用下面这个小方法解决  见代码 #include <iostream> int n; int main() {…
1.我的私人博客!!! 2.博主还处于入门学习阶段,并且非常玻璃心 3. 激烈讨论√  人身攻击× 4. 欢迎指正错误,相互学习 5. 很少在线,无法及时回复请谅解 https://www.cnblogs.com/gczdac/ https://blog.csdn.net/qq_43540553…
测试一下! 今天开了新博客! 还自己改了下首页! 开心!!!!! 访者必阅 https://www.cnblogs.com/gczdac/ https://blog.csdn.net/qq_43540553…
#include <cstdio> int main(){ for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",a+b)); ; } hdu1000 #include <cstdio> int main(){ ==?((n/)*(+n)):((+n)/)*n))); ; } hdu1001 #include <cmath> #include <cstdio> #…
哈哈A+B #include<stdio.h> int main() { int a,b; while(scanf("%d%d",&a,&b)!=EOF){ printf("%d\n",a+b);} ; }…
A + B Problem Problem Description Calculate A + B.   Input Each line will contain two integers A and B. Process to end of file.   Output For each case, output A + B in one line.   Sample Input 1 1   Sample Output 2 #include<stdio.h> #include<stdl…
Problem Description Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For each case, output A + B in one line. Sample Input 1 1 Sample Output 2 分析 输入两个数A和B,求A+B. 但是是多行的,因此需要用循环反复读取. 又因为输入数据中没有说有多少行,因此不…
题目来源:www.acm.hdu.edu.cn 题目编号:1000  A+B Problem /*----------------------------------------原题目----------------------------------------*/ [Problem Description]   Calculate A + B.   [Input]   Each line will contain two integers A and B. Process to end of…
注意,认真读题目的Input要求,看看是输入一组测试数据还是输入多组测试数据.输入多组数据,不要忘记while(). #include<iostream> using namespace std; int main() { double A; double B; while(cin>>A>>B) { cout<<A+B<<endl; } }…