This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "key.h"
int self[1010];
void EnsureKeyInfo(int N) {
for(int i=1; i<=N; i++){
TakeKey(i);
self[i]=Explore();
Report(i, i);
}
for(int i=1; i<=N; i++){
for(int j=i; j<=N; j++){
if(i == j) continue;
TakeKey(i), TakeKey(j);
int x = Explore();
if(self[i] == x) Report(i, j);
if(self[j] == x) Report(j, i);
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |