# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
164270 | daddy0h | 버블 정렬 (OJUZ10_bubblesort) | C++11 | 164 ms | 2652 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int tN, tK;
cin >> tN >> tK;
list<int> remain;
vector<int> sorted(tN);
vector<int> rsorted(tK);
for(int id=0; id<tN; ++id)
{
int tmp;
cin >> tmp;
sorted[id] = tmp;
remain.push_back(tmp);
}
sort(sorted.rbegin(), sorted.rend());
for(int id=0; id< tK;++id)
{
remain.remove(sorted[id]);
rsorted[id] = sorted[id];
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |