# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
438774 |
2021-06-28T15:06:13 Z |
shahriarkhan |
ICC (CEOI16_icc) |
C++14 |
|
1 ms |
332 KB |
#include<bits/stdc++.h>
#include "icc.h"
using namespace std ;
void run(int N)
{
int vis[N+1][N+1] ;
for(int i = 0 ; i <= N ; ++i)
{
for(int j = 0 ; j <= N ; ++j)
{
vis[i][j] = 0 ;
}
vis[i][i] = 1 ;
}
while(1)
{
int ret[2] = {0} , cnt = 0 ;
for(int i = 1 ; i <= N ; ++i)
{
int a[1] , siz_a = 1 , b[N+1] , siz_b = 0 ;
for(int j = i + 1 ; j <= N ; ++j)
{
if(vis[i][j]) continue ;
b[siz_b++] = j ;
}
if(query(siz_a,siz_b,a,b)) ret[cnt++] = i ;
}
setRoad(ret[0],ret[1]) ;
vis[ret[0]][ret[1]] = 1 ;
vis[ret[1]][ret[0]] = 1 ;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
332 KB |
Query cities not in range [1, n] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
332 KB |
Query cities not in range [1, n] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
332 KB |
Query cities not in range [1, n] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
332 KB |
Query cities not in range [1, n] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
332 KB |
Query cities not in range [1, n] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
332 KB |
Query cities not in range [1, n] |
2 |
Halted |
0 ms |
0 KB |
- |