# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
826010 |
2023-08-15T09:51:20 Z |
Darren0724 |
Editor (BOI15_edi) |
C++17 |
|
380 ms |
3652 KB |
#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 time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Integer -21 violates the range [0, 30] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
380 ms |
3652 KB |
Output is correct |
2 |
Correct |
379 ms |
3624 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
195 ms |
3260 KB |
Integer -124579 violates the range [0, 150000] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Integer -21 violates the range [0, 30] |
2 |
Halted |
0 ms |
0 KB |
- |