# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1047240 | vjudge1 | Arranging Shoes (IOI19_shoes) | 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 <bits/stdc++.h>
using std::cin, std::cout, std::vector, std::set, std::endl, std::string, std::map,std::pair,std::max,std::min;
#include "combo.h"
string guess_sequence(int N) {
if(N==3){
string table[4] = {"A","B","X","Y"};
for(int i=0;i<4;i++){
for(int j=0;j<4 && j!=i;j++){
for(int k=0;k<4 && k!=i;k++){
string str = table[i]+table[j]+table[k];
if(press(str)==3){
return str;
}
}
}
}
}
return "";
}