Submission #429975

# Submission time Handle Problem Language Result Execution time Memory
429975 2021-06-16T10:48:49 Z MOUF_MAHMALAT Vision Program (IOI19_vision) C++14
0 / 100
77 ms 332 KB
#include "vision.h"
#include<bits/stdc++.h>
using namespace std;
typedef int ll;
vector<ll>v,w;
bool b[200][200][200][200];
ll n,m,gg;
ll cal(ll xx,ll yy)
{
    ll id2=(xx*m)+yy;
    w.push_back(id2);
}
void construct_network(int H, int W, int k)
{
    n=H,m=W,gg=n*m;
    for(ll i=0; i<n; i++)
    {
        for(ll j=0; j<m; j++)
        {
            w.clear();
            cal(i,j);
            for(ll o=i; o<n; o++)
                for(ll p=j; p<m; p++)
                {
                   if(abs(i-o)+abs(j-p)!=k)
                    continue;
                   if(b[i][j][o][p])
                    continue;
                   b[i][j][o][p]=1;
                   cal(o,p);
                }
            add_and(w);
            v.push_back(gg++);
        }
    }
    add_or(v);
}

Compilation message

vision.cpp: In function 'll cal(ll, ll)':
vision.cpp:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
   12 | }
      | ^
# Verdict Execution time Memory Grader output
1 Runtime error 68 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 68 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 68 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 68 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 73 ms 332 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 70 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 77 ms 288 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 68 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -