1010 C語言--Elevator

    #include "stdio.h" #include "stdlib.h" int main(){ int n=1,i,sum; int *a; while(scanf("%d", &n) != EOF && n!=0){ a = (int *)malloc((n+1)*sizeof(int)); a[0] = 0; sum = 0; for(i=1;i<n+1;
相關文章
相關標籤/搜索