| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 944963 | Xiaoyang | 카멜레온의 사랑 (JOI20_chameleon) | C++17 | 1 ms | 600 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "chameleon.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define pll pair<ll,ll>
#define pb push_back
#define debug(x) cerr<<#x<<"="<<x<<endl;
#define MP make_pair
#define rep(i,a,b) for(ll i=a;i<b;i++)
#define SZ(x) (ll)x.size()
#define ALL(x) x.begin(),x.end()
#define endl "\n"
const ll inf=1e18;
ll lowbit(ll x){return x&(-x);}
void Solve(int n) {
vector<int>a;
rep(i,1,2*n+1)a.pb(i);
while(!a.empty()){
ll lo=0,hi=a.size()-1;
while(lo<hi){
ll mid=lo+hi+1>>1;
vector<int>aa,bb;
rep(i,0,mid)aa.pb(a[i]);
rep(i,1,mid)bb.pb(a[i]);
ll x=Query(aa);
ll y=Query(bb);
if(x==y)hi=mid-1;
else lo=mid;
}
ll xx=a[0],yy=a[lo];
a.erase(a.begin());
a.erase(a.begin()+lo);
Answer(xx,yy);
}
}컴파일 시 표준 에러 (stderr) 메시지
| # | 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... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
