# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
72400 | (#118) | Key of Impassable Doors (FXCUP3_key) | C++17 | 0 ms | 0 KiB |
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"
static A[111][111];
void EnsureKeyInfo(int N){
for(int i=1;i<=N;i++) for(int j=i+1;j<=N;j++){
TakeKey(i), TakeKey(j);
A[i][j] = A[j][i] = Explore();
}
for(int i=1;i<=N;i++){
TakeKey(i);
int cur = Explore();
for(int j=1;j<=N;j++) if(A[i][j]==cur) Report(i,j);
}
for(int i=1;i<=N;i++) Report(i,i);
}