Submission #92984

#TimeUsernameProblemLanguageResultExecution timeMemory
92984temoyanteladzeCombo (IOI18_combo)C++14
10 / 100
89 ms440 KiB
#include<bits/stdc++.h> #include "combo.h" using namespace std; string guess_sequence(int n) { string s=""; string ch=""; if (press("A")) { s+="A"; ch="A"; } if (press("B")) { s+="B"; ch="B"; } if (press("X")) { s+="X"; ch="X"; } if (press("Y")) { s+="Y"; ch="Y"; } for (int i=2;i<=n;i++) { string c; c=s+"A"; if (ch!="A") if (press(c)==i) { s+="A"; continue; } c=s; c+="B"; if (ch!="B") if (press(c)==i) { s+="B"; continue; } c=s; c+="X"; if (ch!="X") if (press(c)==i) { s+="X"; continue; } c=s; c+="Y"; if (ch!="Y") if (press(c)==i) s+="Y"; } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...