题目描述 简单模拟题(水题 ) #include<cstdio> using namespace std; int main(){ int n; scanf("%d",&n); int floor=0; int future; int time=n*5; while(n--){ scanf("%d",&future); if(future>floor){ time+=(future-floor)*6; } else{ time+=(floor-future)*4; } floor=future; } printf("%d",time); }