Submission #72551

#TimeUsernameProblemLanguageResultExecution timeMemory
72551마릴린 희정 (#118)통행이 제한된 저택 (FXCUP3_key)C++17
23 / 100
11 ms1772 KiB
#include "key.h" #include<cstdio> void EnsureKeyInfo(int N) { int key[100]; for(int i=1; i<=N; ++i) { TakeKey(i); key[i] = Explore(); Report(i, i); } for(int i=1; i<=N; ++i) { for(int j=1; j<i; ++j) { //if(i!=j) continue; TakeKey(i); TakeKey(j); int v = Explore(); if(v == key[i]) { //printf("%d %d\n", i, j); Report(i, j); } if(v == key[j]) { //printf("%d %d\n", j, i); Report(j, i); } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...