-
HackerRank.com Practice > C++ > Introduction > Arrays Introductionhackerrank.com 2020. 4. 17. 07:29728x90
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { int N; cin >> N; int as[N]; for(int i=0; i<N; ++i) cin >> as[i]; for(int i=N-1; i>=0; --i) cout << as[i] << " "; return 0; }
728x90'hackerrank.com' 카테고리의 다른 글
HackerRank.com Practice > C++ > Introduction > Variable Sized Arrays (0) 2020.04.17 HackerRank.com Practice > C++ > Introduction > Pointer (0) 2020.04.17 HackerRank.com Practice > C++ > Introduction > Functions (0) 2020.04.17 HackerRank.com Practice > C++ > Introduction > For Loop (0) 2020.04.17 HackerRank.com Practice > C++ > Introduction > Conditional Statements (0) 2020.04.16