# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
947571 |
2024-03-16T12:38:34 Z |
Darren0724 |
ICC (CEOI16_icc) |
C++17 |
|
224 ms |
852 KB |
#include "icc.h"
#include <bits/stdc++.h>
using namespace std;
int n,cnt=0;
set<pair<int,int>> s;
void answer(int a,int b){
setRoad(a,b);
s.insert({a,b});
cnt++;
if(cnt==n-1){
exit(0);
}
}
void run(int N){
n=N;
for(int _=0;_<n-1;_++){
for(int i=1;i<=n;i++){
for(int j=1;j<=n;j++){
if(i==j)continue;
int a[1],b[1];
a[0]=i,b[0]=j;
if(s.find({i,j})==s.end()&&query(1,1,a,b)){
answer(i,j);
}
}
}
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
8 ms |
604 KB |
Wrong road! |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
93 ms |
604 KB |
Wrong road! |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
224 ms |
852 KB |
Number of queries more than 4500 out of 2250 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
199 ms |
604 KB |
Number of queries more than 4000 out of 2000 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
196 ms |
612 KB |
Number of queries more than 3550 out of 1775 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
160 ms |
604 KB |
Number of queries more than 3250 out of 1625 |
2 |
Halted |
0 ms |
0 KB |
- |