摘要:
#include <stdio.h>#include <string.h>#include <stdlib.h>char ballons[1000][15];int sum[1000];int ballons_idx;int n;int InBallons(char* tmp){ int i; for (i=0;i<ballons_idx;i++) { if (strcmp(tmp,ballons[i]) == 0) { sum[i]++; return 1; } } retur... 阅读全文
摘要:
#include<stdio.h>int sum(int i){int k=0;while(i){k+=i;i--;}return k;}int main(){int a;while(1 == scanf("%d",&a))printf("%d\n\n",sum(a));return 0;} 阅读全文
摘要:
#include<stdio.h>int main(){int a,b;while(2 == scanf("%d%d",&a,&b))//学到了这个~printf("%d\n",a+b);return 0;} 阅读全文