답안 #892659

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
892659 2023-12-25T16:27:52 Z vjudge1 Sprinkler (JOI22_sprinkler) C++17
컴파일 오류
0 ms 0 KB
#include "dango3.h"
#include <bits/stdc++.h>
using namespace std;


vector< vector<int> > dnq(vector<int> idx, int need){
	
	if(need == 1){
		vector< vector<int> > res(1);
		res[0] = idx;
		return res;
	}
	vector<int> n1 = idx, n2;
	for(int i : idx){
		n2.push_back(i);
		n1.erase(n1.begin());
		int cnt = Query(n1);
		if(cnt < need / 2){
			n1.push_back(n2.back());
			n2.pop_back();
		}
	}
	vector<vector<int> > v1 = dnq(n1, need / 2), v2 =dnq(n2, need - need / 2);
	vector< vector<int> > res =v1;
	for(auto i : v2) res.push_back(i);
	return res;
	
}



void Solve(int n, int m){
	vector<int> all;
	for(int i = 1;i <= n * m; i++) all.push_back(i);
	vector<vector<int> > vec = dnq(all, m);
	for(int i = 0;i < m; i++) Answer(vec[i]);
}

Compilation message

sprinkler.cpp:1:10: fatal error: dango3.h: No such file or directory
    1 | #include "dango3.h"
      |          ^~~~~~~~~~
compilation terminated.