답안 #1010208

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1010208 2024-06-28T13:14:23 Z LCJLY 카멜레온의 사랑 (JOI20_chameleon) C++14
0 / 100
20 ms 356 KB
#include "chameleon.h"
#include <bits/stdc++.h>
using namespace std;
	
//#define int long long 
#define ld long double
#define show(x,y) cout << y << " " << #x << endl;
#define show2(x,y,i,j) cout << y << " " << #x << "  " << j << " " << #i << endl;
#define show3(x,y,i,j,p,q) cout << y << " " << #x << "  " << j << " " << #i << "  " << q << " " << #p << endl;
#define show4(x,y) for(auto it:y) cout << it << " "; cout << #x << endl;
typedef pair<int,int>pii;
typedef array<int,3>pi2;

//Query(vector<int>)
//Answer(int,int)

void Solve(int n){
	int done[n+5];
	memset(done,0,sizeof(done));
	for(int x=1;x<=2*n;x++){
		if(done[x]) continue;
		for(int y=x+1;y<=2*n;y++){
			if(done[y]) continue;
			vector<int>v;
			v.push_back(x);
			v.push_back(y);
			int hold=Query(v);
			if(hold==1){
				done[y]=true;
				Answer(x,y);
			}
		}
	}
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Incorrect 20 ms 344 KB Wrong Answer [3]
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 356 KB Wrong Answer [6]
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 356 KB Wrong Answer [6]
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Incorrect 0 ms 344 KB Wrong Answer [6]
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Incorrect 20 ms 344 KB Wrong Answer [3]
4 Halted 0 ms 0 KB -