# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1140590 | browntoad | Furniture (JOI20_furniture) | C++20 | 5091 ms | 2396 KiB |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define int ll
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) FOR(i, 0, n)
#define REP1(i, n) FOR(i, 1, n+1)
#define pii pair<int, int>
#define f first
#define s second
#define ALL(x) (x).begin(), (x).end()
#define SZ(x) (int)((x).size())
#define pb push_back
#define endl '\n'
#define IOS() ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
const ll maxn = 1005;
const ll inf = 1ll<<60;
const ll mod = 1e9+7;
int n, m;
bool arr[maxn][maxn];
bool ok[maxn][maxn];
bool run(){
REP1(i, n){
REP1(j, m){
ok[i][j] = (ok[i-1][j] | ok[i][j-1]);
ok[1][1] = 1;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |