반응형 Vector1 [HackerRank]Vector-Sort - Easy https://www.hackerrank.com/challenges/vector-sort/problem Vector-Sort | HackerRank Learn about the container vector. Sort a vector and print the sorted vector. www.hackerrank.com #include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; int res; vectorv; cin>>n; for(int i =0;i>res; v.push_back(r.. 2019. 10. 29. 이전 1 다음 반응형