HDOJ1089-HDOJ1096【格式练习】
Problem : 1089 ( A+B for Input-Output Practice (I) ) Judge Status : Accepted
RunId : 5922058 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
RunId : 5922058 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
#include <stdio.h> int main() { int a,b; while (~scanf("%d%d",&a,&b)) { printf("%d\n",a+b); } return 0; }
Problem : 1090 ( A+B for Input-Output Practice (II) ) Judge Status : Accepted
RunId : 5922059 Language : C Author : qq1203456195
RunId : 5922059 Language : C Author : qq1203456195
#include <stdio.h> int main() { int n,a,b; scanf("%d",&n); while (n--) { scanf("%d%d",&a,&b); printf("%d\n",a+b); } return 0; }
Problem : 1091 ( A+B for Input-Output Practice (III) ) Judge Status : Accepted
RunId : 5922061 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
RunId : 5922061 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
#include <stdio.h> int main() { int a,b; while (scanf("%d%d",&a,&b),a||b) { printf("%d\n",a+b); } return 0; }
Problem : 1092 ( A+B for Input-Output Practice (IV) ) Judge Status : Accepted
RunId : 5922084 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
RunId : 5922084 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
#include <stdio.h> int main() { int a,n,s; while (~scanf("%d",&n)) { if(n==0) break; s=0; while(n--) { scanf("%d",&a); s+=a; } printf("%d\n",s); } return 0; }
Problem : 1093 ( A+B for Input-Output Practice (V) ) Judge Status : Accepted
RunId : 5922092 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
RunId : 5922092 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
#include <stdio.h> int main() { int a,n,s,t; scanf("%d",&n); while (n--) { scanf("%d",&t); s=0; while(t--) { scanf("%d",&a); s+=a; } printf("%d\n",s); } return 0; }
Problem : 1094 ( A+B for Input-Output Practice (VI) ) Judge Status : Accepted
RunId : 5922101 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
RunId : 5922101 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
#include <stdio.h> int main() { int a,n,s; while (~scanf("%d",&n)) { if(n==0) break; s=0; while(n--) { scanf("%d",&a); s+=a; } printf("%d\n",s); } return 0; }
Problem : 1095 ( A+B for Input-Output Practice (VII) ) Judge Status : Accepted
RunId : 5922106 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
RunId : 5922106 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
#include <stdio.h> int main() { int a,b; while (~scanf("%d%d",&a,&b)) { printf("%d\n\n",a+b); } return 0; }
Problem : 1096 ( A+B for Input-Output Practice (VIII) ) Judge Status : Accepted
RunId : 5922122 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
RunId : 5922122 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
#include <stdio.h> int main() { int a,n,s,t; scanf("%d",&n); while (n--) { scanf("%d",&t); s=0; while(t--) { scanf("%d",&a); s+=a; } printf("%d\n",s); if(n!=0) printf("\n"); } return 0; }
![字节跳动内推](https://img2020.cnblogs.com/blog/323808/202004/323808-20200415172728571-1992447742.jpg)
找我内推: 字节跳动各种岗位
作者:
ZH奶酪(张贺)
邮箱:
cheesezh@qq.com
出处:
http://www.cnblogs.com/CheeseZH/
*
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。