Submission #300374

# Submission time Handle Problem Language Result Execution time Memory
300374 2020-09-17T06:11:09 Z nadidadit Connecting Supertrees (IOI20_supertrees) C++17
0 / 100
1 ms 384 KB
#include "supertrees.h"
#include <bits/stdc++.h>
#define fi first
#define se second
#define eb emplace_back
#define all(v) (v).begin(), (v).end()
#define rmin(r, x) r = min(r, x)
#define rmax(r, x) r = max(r, x)
#define ends ' '
#define endl '\n'
#define fastio ios_base::sync_with_stdio(0), cin.tie(0)
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
 
const int maxn = 1e3 + 10;
 
int n;
vector<vector<int>> b;
 
int construct(vector<std::vector<int>> p) {
	n = p.size();
	b.resize(n);
		for(int i=0;i<n;++i)
    {
    	for(int j=0;j<n;++j)
    	{
    		if(i-j==1 || j-i==1)
    		{
    			b[i][j]=1;
			}
		}
	}
	build(b);
	return 1;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB WA in grader: Invalid number of columns in b
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB WA in grader: Invalid number of columns in b
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 384 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 384 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB WA in grader: Invalid number of columns in b
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB WA in grader: Invalid number of columns in b
2 Halted 0 ms 0 KB -