HDOJ 1094 A+B for Input-Output Practice (VI)
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1094acm常见的输入输出类型,就是一种模板,花一点点时间背下来就可以了, 1 #include<iostream> 2 #include<stdio.h> 3 using namespace std; 4 int main (){ 5 int a,n; 6 while(scanf("%d",&n)!=EOF){ 7 int sum=0; 8 for(int i=0;i<n;i++){ 9 cin>>a;10 su... 阅读全文
posted @ 2013-05-02 09:50 wsxjbcy 阅读(113) 评论(0) 推荐(0) 编辑