제출 #826010

#제출 시각아이디문제언어결과실행 시간메모리
826010Darren0724Editor (BOI15_edi)C++17
15 / 100
380 ms3652 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int n;cin>>n; vector<int> v; for(int i=0;i<n;i++){ int k;cin>>k; if(k==-1){ v.pop_back(); } else{ v.push_back(k); } cout<<v.back()<<endl; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...