Submission #826010

#TimeUsernameProblemLanguageResultExecution timeMemory
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...