# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1128711 | Vietnow | Bomb (IZhO17_bomb) | C++20 | 1100 ms | 98332 KiB |
#include <bits/stdc++.h>
#define yes cout<<"YES\n"
#define no cout<<"NO\n"
#define int long long
#define ff first
#define ss second
#define pb push_back
#define y1 zildjian
#define left radio
#define right head
using namespace std;
const int N = 2501;
const int INF = 1e18;
const int mod = 1e9+7;
const int mod1 = 998244353;
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
int n,m;
int a[N][N];
int del[N][N];
bool available(int w, int h, int i, int j){
if(i+w-1 > n) return 0;
if(j+h-1 > m) return 0;
for(int k = i;k<i+w;k++){
for(int l = j;l<j+h;l++){
if(!a[k][l]) return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |