Submission #135351

# Submission time Handle Problem Language Result Execution time Memory
135351 2019-07-24T04:09:12 Z dragonslayerit ICC (CEOI16_icc) C++14
7 / 100
468 ms 632 KB
#include "icc.h"

#include <cstdio>
#include <vector>

bool query(std::vector<int> a,std::vector<int> b){
  return query(a.size(),b.size(),a.data(),b.data());
}

void solve(int N){
  for(int i=1;i<=N;i++){
    for(int j=i+1;j<=N;j++){
      if(query({i},{j})){
	setRoad(i,j);
	return;
      }
    }
  }
}

void run(int N){
  for(int i=0;i<N-1;i++){
    solve(N);
  }
}
# Verdict Execution time Memory Grader output
1 Correct 62 ms 632 KB Ok! 1015 queries used.
2 Correct 62 ms 508 KB Ok! 1010 queries used.
# Verdict Execution time Memory Grader output
1 Incorrect 174 ms 504 KB Wrong road!
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 468 ms 504 KB Number of queries more than 4500 out of 2250
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 433 ms 632 KB Number of queries more than 4000 out of 2000
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 389 ms 504 KB Number of queries more than 3550 out of 1775
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 361 ms 632 KB Number of queries more than 3250 out of 1625
2 Halted 0 ms 0 KB -