# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
832876 | Marco_Escandon | Rectangles (IOI19_rect) | C++17 | 1 ms | 340 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;
typedef long long ll;
ll su,iz,de, in;
ll contt;
vector<vector<ll>> v;
ll dfs(ll a, ll b)
{
if(a==-1||b==-1||a==v.size()||b==v[0].size())
return false;
if(v[a][b]==1)
return true;
contt++;
su=min(a,su);
in=max(a,in);
iz=min(b,iz);
de=max(b,de);
v[a][b]=1;
if(dfs(a+1,b)==false) return false;
if(dfs(a,b+1)==false) return false;
if(dfs(a-1,b)==false) return false;
if(dfs(a,b-1)==false) return false;
return true;
}
long long count_rectangles(std::vector<std::vector<int> > a) {
/*if(a.size()<4)
{
ll n=a[0].size();
ll cont=0;
if(n<3||a.size()<3)
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |