Submission #232958

# Submission time Handle Problem Language Result Execution time Memory
232958 2020-05-18T18:53:00 Z cfalas ICC (CEOI16_icc) C++14
0 / 100
33 ms 664 KB
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include<bits/stdc++.h>
using namespace std;
#define mp make_pair
#define INF 10000000
#define MOD 1000000007
#define MID (l+r)/2
#define HASHMOD 2305843009213693951
#define ll long long
#define ull unsigned long long
#define F first
#define S second
typedef pair<ll, ll> ii;
typedef pair<ii, int> iii;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef map<int, int> mii;

#define EPS 1e-6

#define T double
typedef complex<T> pt;
#define x real()
#define y imag()
T dot(pt v, pt w) {return (conj(v)*w).x;}
T cross(pt v, pt w) {return (conj(v)*w).y;}
T orient(pt a, pt b, pt c) {return cross(b-a,c-a);}
T dist(pt a, pt b) {return abs(a-b);}

#include "icc.h"

void run(int n){
	for(int i=0;i<n;i++){
		vi t;
		for(int j=0;j<n;j++){
			int a[1] = {j+1};
			int b[n-1];
			int cnt=0;
			for(int k=0;k<n;k++) if(k!=j) b[cnt++]=k+1;
			if(query(1, n-1, a, b)){
				t.push_back(j+1);
			}
		}
		setRoad(t[0], t[1]);
	}
}
# Verdict Execution time Memory Grader output
1 Incorrect 6 ms 512 KB Wrong road!
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 12 ms 512 KB Wrong road!
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 24 ms 512 KB Wrong road!
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 33 ms 512 KB Wrong road!
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 25 ms 512 KB Wrong road!
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 25 ms 664 KB Wrong road!
2 Halted 0 ms 0 KB -