A1008 Elevator

#include<iostream> #include<stdio.h> using namespace std; int main(){ int n; scanf("%d",&n); int time = 0; int t = 0; int now = 0; for(int i = 1;i<=n;i++){ scanf("%d",&t); if(t>=now){ t
相關文章
相關標籤/搜索