Submission #1517243
Source Code Expand
#include<iostream> #include<algorithm> #include<vector> using namespace std; int main(){ int a[20001]; vector <int> b; int N; cin>>N; for(int i=0;i<N;i++){ cin>>a[i]; } for(int i=0;i<N;i++){ b.push_back(a[i]); reverse(b.begin(), b.end()); } for(int i=0;i<N;i++){ cout<<b[i]; if(i!=N-1)cout<<" "; else cout<<endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - pushpush |
User | agony |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 538 Byte |
Status | RE |
Exec Time | 106 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt, sample4.txt |
All | even_0.txt, even_1.txt, even_2.txt, even_3.txt, odd_0.txt, odd_1.txt, odd_2.txt, odd_3.txt, sample1.txt, sample2.txt, sample3.txt, sample4.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
even_0.txt | RE | 104 ms | 256 KB |
even_1.txt | RE | 104 ms | 256 KB |
even_2.txt | RE | 103 ms | 256 KB |
even_3.txt | RE | 105 ms | 256 KB |
odd_0.txt | RE | 104 ms | 256 KB |
odd_1.txt | RE | 104 ms | 256 KB |
odd_2.txt | RE | 106 ms | 256 KB |
odd_3.txt | RE | 104 ms | 256 KB |
sample1.txt | AC | 1 ms | 256 KB |
sample2.txt | AC | 1 ms | 256 KB |
sample3.txt | AC | 1 ms | 256 KB |
sample4.txt | AC | 1 ms | 256 KB |