# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
892535 | 2023-12-25T13:20:24 Z | iskhakkutbilim | Super Dango Maker (JOI22_dango3) | C++17 | 73 ms | 920 KB |
#include "dango3.h" #include <bits/stdc++.h> using namespace std; void Solve(int n, int m){ vector<int> used(n * m + 1, 0); vector<vector<int> > ans(m); for(int i = 0;i < m; i++){ vector<int> idx; for(int j = 1;j <= n * m; j++){ if(used[j]) continue; idx.push_back(j); } while(idx.size()){ int bc = idx.back(); idx.pop_back(); int cnt = Query(idx); if(cnt == 0){ ans[i].push_back(bc); used[bc] = 1; } } if(ans.size() != n) assert(false); } for(int i = 0;i < m; i++){ Answer(ans[i]); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 344 KB | Wrong Answer [4] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 2 ms | 604 KB | Execution killed with signal 6 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 19 ms | 860 KB | Execution killed with signal 6 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 73 ms | 920 KB | Execution killed with signal 6 |
2 | Halted | 0 ms | 0 KB | - |