# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
58721 | ksun48 | 도서관 (JOI18_library) | C++14 | 746 ms | 592 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "library.h"
#include <bits/stdc++.h>
using namespace std;
int check(int n, int a, int b){
vector<int> ask(n, 0);
ask[a] = ask[b] = 1;
if(Query(ask) == 1){
return 1;
}
return 0;
}
void Solve(int N) {
int n = N;
vector<vector<int> > groups;
for(int i = 0; i < n; i++){
groups.push_back({i});
}
while(groups.size() > 1){
vector<int> inside(groups.size(), 1);
int n1 = groups.size();
while(n1 > 2){
vector<int> newinside(groups.size());
vector<int> ask(n, 0);
int newn1 = 0;
for(int i = 0; i < groups.size(); i++){
if(inside[i]){
newinside[i] = (rand() % 3 == 0);
if(newinside[i]){
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |