180423_10989_수 정렬하기 3
//https://www.acmicpc.net/problem/10989 #include #include using namespace std; int num[10001];int main(){ int n; scanf("%d",&n); int input; for(int i=0; i
//https://www.acmicpc.net/problem/10989 #include #include using namespace std; int num[10001];int main(){ int n; scanf("%d",&n); int input; for(int i=0; i
//https://www.acmicpc.net/problem/1427 #include #include #include #include using namespace std; int main(){ string num; cin >> num; vector v; for(int i=0; i=0; i--){ cout
//https://www.acmicpc.net/problem/1026 #include #include #include using namespace std; bool cmp(int a, int b){ return a>b;}int main(){ int n; cin>> n; vector A; vector B; for(int i=0; i> a; A.push_back(a); } for(int i=0; i> b; B.push_back(b); } sort(B.begin(), B.end()); sort(A.begin(), A.end(), cmp); int ans=0; for(int i=0; i
//https://www.acmicpc.net/problem/2747 #include using namespace std; void memoization(int f[]);int search(int f[], int n);int main(){ int f[45]; memoization(f); int n; cin >> n; cout