Submission #988543

#TimeUsernameProblemLanguageResultExecution timeMemory
988543toan2602Super Dango Maker (JOI22_dango3)C++17
7 / 100
360 ms624 KiB
#include<bits/stdc++.h> #include "dango3.h" using namespace std; vector<int> ans, v2, x; bool mark[100005]; void Solve(int n, int m) { for (int Q = 1; Q <= m; Q++) { for (int i = n * m; i >= 1; i--) if(!mark[i]) x.push_back(i); ans.clear(); v2 = x; while(!x.empty()) { int cur = x.back(); x.pop_back(); v2 = x; for (int i: ans) v2.push_back(i); if(Query(v2) == 0) { ans.push_back(cur); mark[cur] = true; } } Answer(ans); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...