| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 148901 | (παρα)γεμιστά (#200) | Wine Tasting (FXCUP4_wine) | C++17 | 11 ms | 1036 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "bartender.h"
#include<vector>
#include<iostream>
#define rep(i,a,b) for(int i = a;i < b;i++)
using namespace std;
std::vector<int> BlendWines(int K, std::vector<int> R)
{
int n = R.size();
vector < int > res = R;
int cur = 1;
int val = 1;
while(cur <= n)
{
rep(i,0,n)
{
if(R[i]== cur)
{
res[i] = val;
cur++;
}
}
val++;
}
return res;
}
#include "taster.h"
#include<vector>
#include<iostream>
#define rep(i,a,b) for(int i = a;i < b;i++)
using namespace std;
std::vector<int> SortWines(int K, std::vector<int> A) {
int n = A.size();
vector < int > res = A;
int cur = 1;
int val = 1;
while(cur <= n)
{
rep(i,0,n)
{
if(A[i] == val)
{
res[i] = cur;
cur++;
}
}
val++;
}
return res;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
