답안 #871530

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
871530 2023-11-11T04:57:01 Z Sir_Ahmed_Imran CEOI16_icc (CEOI16_icc) C++17
0 / 100
2000 ms 604 KB
                              ///~~~LOTA~~~///
#include <bits/stdc++.h>
#include <icc.h>
using namespace std;
#define ll long long
#define li long int
#define ld long double
#define append push_back
#define add insert
#define nl '\n'
#define ff first
#define ss second
#define pii pair<int,int>
#define pic pair<int,char>
#define all(x) (x).begin(),(x).end()
#define sum(a) accumulate(all(a),0)
#define L0TA ios_base::sync_with_stdio(false);cin.tie(NULL)
#define terminator main
#define N 101
int e[N];
int x[N];
int y[N];
int a[N][N];
void run(int n){
    int m,o,p,q;
    for(int i=n;i>0;i--)
        a[i][i]=e[i]=1;
    for(int t=1;t<n;t++){
        for(m=1;m<=n;m++){
            q=0;
            p=1;
            x[0]=m;
            for(int j=1;j<=n;j++){
                if(a[m][j]) continue;
                y[q]=j;
                q++;
            }
            if(query(p,q,x,y))
                break;
        }
        o=0;
        for(int i=64;i>0;i/2){
            if(o+i>q) continue;
            if(!query(1,o+i,x,y)) o+=i;
        }
        setRoad(m,y[o]);
        a[y[o]][m]=1;
        a[m][y[o]]=1;
        e[y[o]]++;
        e[m]++;
    }
}

Compilation message

icc.cpp: In function 'void run(int)':
icc.cpp:42:27: warning: for increment expression has no effect [-Wunused-value]
   42 |         for(int i=64;i>0;i/2){
      |                          ~^~
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 2005 ms 600 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 2039 ms 604 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 2031 ms 600 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 2039 ms 604 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 2052 ms 604 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 2066 ms 604 KB Time limit exceeded
2 Halted 0 ms 0 KB -