# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
292987 | limabeans | Furniture (JOI20_furniture) | C++17 | 380 ms | 6392 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
template<typename T>
void out(T x) { cout << x << endl; exit(0); }
#define watch(x) cout << (#x) << " is " << (x) << endl
using ll = long long;
const ll mod = 1e9+7;
const int maxn = 1010;
int n, m;
int g[maxn][maxn];
int diag[maxn+maxn];
int upd(int x, int y) {
// path via (x,y) is already blocked
if (g[x][y]==1) {
return 1;
}
// all paths go through (x,y)
if (diag[x+y]==1) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |