Elevator
摘要:
#include<stdio.h>#include<string.h>#include<stdlib.h>int A[110],t=0;void fun(int x ){ if(x-1==-1) t+=A[x]*6+5; else if(A[x]>A[x-1]) t+=(A[x]-A[x-1])*6+5; else if(A[x]<A[x-1]) t+=(A[x-1]-A[x])*4+5; else if(A[x]==A[x-1]) t+=5; }int main( ){ int N,i; while(scanf("%d",& 阅读全文
posted @ 2011-05-03 17:34 more think, more gains 阅读(176) 评论(0) 推荐(0)