| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 916737 | _VIBE | Combo (IOI18_combo) | C++17 | 1 ms | 344 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 "combo.h"
#include <string>
#include<bits/stdc++.h>
using namespace std;
string guess_sequence(int N);
int press(string p);
string guess_sequence(int N) {
set<char> s={'A','X','B','Y'};
string ans;
for(auto x:s){
string q;
q+=x;
if(press(q)==1){
s.erase(x);
ans=q;break;
}
}
if(s.size()==4){
ans=*s.rbegin();
s.erase(*s.rbegin());
}
return ans;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
