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; }