# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
882335 |
2023-12-03T04:42:51 Z |
ono_de206 |
ICC (CEOI16_icc) |
C++14 |
|
13 ms |
860 KB |
#include "icc.h"
#include <bits/stdc++.h>
using namespace std;
#include<bits/stdc++.h>
using namespace std;
#define in insert
#define all(x) x.begin(),x.end()
#define pb push_back
#define eb emplace_back
#define ff first
#define ss second
//#define int long long
typedef long long ll;
typedef vector<int> vi;
typedef set<int> si;
typedef multiset<int> msi;
typedef pair<int, int> pii;
typedef vector<pii> vpii;
const int mxn = 110;
int A[mxn], B[mxn];
vector<int> g[mxn];
int ask(vector<int> a, vector<int> b) {
int sza = 0, szb = 0;
for(int x : a) {
for(int y : g[x]) {
A[sza++] = y;
}
}
for(int x : b) {
for(int y : g[x]) {
B[szb++] = y;
}
}
return query(sza, szb, A, B);
}
void run(int n) {
vector<int> all;
for(int i = 1; i <= n; i++) {
g[i].pb(i);
all.pb(i);
}
for(int t = 1; t < n; t++) {
int A[n + 1], B[n + 1];
int sza = 0, szb = n;
for(int i = 0; i < n; i++) {
B[i] = n - i;
}
int x = -1, y = -1;
for(int i = 1; i <= n; i++) {
A[sza++] = i;
szb--;
int tmp = query(sza, szb, A, B);
if(tmp == 0 && y == -1 && x != -1) y = i;
if(tmp == 1 && x == -1) x = i;
}
setRoad(x, y);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
604 KB |
Wrong road! |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
7 ms |
604 KB |
Wrong road! |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
10 ms |
604 KB |
Wrong road! |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
10 ms |
604 KB |
Wrong road! |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
10 ms |
604 KB |
Wrong road! |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
13 ms |
860 KB |
Wrong road! |
2 |
Halted |
0 ms |
0 KB |
- |