Submission #1033136

#TimeUsernameProblemLanguageResultExecution timeMemory
1033136adaawfSuper Dango Maker (JOI22_dango3)C++17
0 / 100
1 ms600 KiB
#include <iostream> #include <vector> #include "dango3.h" using namespace std; vector<int> trya(vector<int> v, int x) { vector<int> vv; for (int w : v) { if (w != x) { vv.push_back(w); } } return vv; } void Solve(int n, int m) { vector<int> v; vector<vector<int>> res; for (int i = 1; i <= n * m; i++) { v.push_back(i); } for (int i = 1; i <= m; i++) { vector<int> vv; for (int w : vv) { if (Query(trya(vv, w)) != 0) { vv = trya(vv, w); } } res.push_back(vv); for (int w : vv) v = trya(v, w); } for (auto w : res) Answer(w); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...