Submission #316425

# Submission time Handle Problem Language Result Execution time Memory
316425 2020-10-26T10:34:52 Z juggernaut Vision Program (IOI19_vision) C++14
0 / 100
1000 ms 1520 KB
#include"vision.h"
#include<bits/stdc++.h>
#ifdef EVAL
#else
#include"grader.cpp"
#endif
using namespace std;
pair<int,int>op(pair<int,int>p){
    //if(p.first>p.second)swap(p.first,p.second);
    return p;
}
void construct_network(int H,int W,int K){
	vector<int>total;
	vector<pair<int,int>>v;
	for(int i1=0;i1<H;i1++)
	for(int i2=0;i2<H;i2++)
	for(int j1=0;j1<W;j1++)
	for(int j2=0;j2<W;j2++)
    if(abs(i1-i2)+abs(j1-j2)==K)v.push_back(op({i1*W+j1,i2*W+j2}));
    sort(v.begin(),v.end());
    int n=unique(v.begin(),v.end())-v.begin();
    for(int i=0;i<n;i++)total.push_back(add_and({v[i].first,v[i].second}));
	add_xor(total);
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB on inputs (0, 0), (0, 1), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB on inputs (0, 0), (0, 1), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB on inputs (0, 0), (0, 1), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB on inputs (0, 0), (0, 1), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 512 KB on inputs (0, 0), (0, 1), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 KB on inputs (0, 0), (0, 1), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1093 ms 1520 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB on inputs (0, 0), (0, 1), expected 1, but computed 0
2 Halted 0 ms 0 KB -