# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
438120 |
2021-06-27T15:48:56 Z |
shahriarkhan |
ICC (CEOI16_icc) |
C++14 |
|
453 ms |
464 KB |
#include<bits/stdc++.h>
#include "icc.h"
using namespace std ;
void run(int N)
{
set<pair<int,int> > s ;
while(1)
{
int siz = s.size() ;
if(siz==(N-1)) break ;
for(int i = 1 ; i <= N ; ++i)
{
for(int j = i + 1 ; j <= N ; ++j)
{
int a[1] , b[1] ;
a[0] = i , b[0] = j ;
if(query(1,1,a,b))
{
s.insert({i,j}) ;
}
}
}
}
for(pair<int,int> p : s) setRoad(p.first,p.second) ;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
153 ms |
460 KB |
Number of queries more than 3000 out of 1500 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
308 ms |
460 KB |
Number of queries more than 5000 out of 2500 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
453 ms |
460 KB |
Number of queries more than 4500 out of 2250 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
407 ms |
464 KB |
Number of queries more than 4000 out of 2000 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
361 ms |
464 KB |
Number of queries more than 3550 out of 1775 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
359 ms |
464 KB |
Number of queries more than 3250 out of 1625 |
2 |
Halted |
0 ms |
0 KB |
- |