Submission #65354

#TimeUsernameProblemLanguageResultExecution timeMemory
65354imsifileKey of Impassable Doors (FXCUP3_key)C11
23 / 100
12 ms1900 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...