# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1154048 | mingga | Furniture (JOI20_furniture) | C++20 | 157 ms | 7408 KiB |
#include "bits/stdc++.h"
using namespace std;
#define ln "\n"
#define pb push_back
#define fi first
#define se second
#define all(x) (x).begin(), (x).end()
#define sz(x) ((int)(x).size())
// #define int long long
const int mod = 1e9 + 7;
const int inf = 2e9;
const int N = 1e3 + 7;
int n, m, a[N][N], q;
int cross[N * 5];
bool f[N][N];
vector<pair<int, int>> st;
void add(int x, int y) {
if(f[x][y]) return;
f[x][y] = 1;
cross[x + y]--;
st.push_back({x, y});
}
bool check(int x, int y) {
if(f[x][y]) return 1;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |