# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
643114 | TimDee | Password (RMI18_password) | C++17 | 5 ms | 208 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 namespace std;
int query(string s);
string guess(int n, int c) {
if (n<=c && c<=26) {
string ans(n,'.');
for (char i='a'; i<'a'+c; ++i) {
int x=0;
for (char j='a'; j<'a'+c; ++j) {
if (j==i) continue;
string s;
s+=i; s+=j;
int q=query(s);
x+=q-1;
}
if (x<0) continue;
ans[n-1-x]=i;
}
return ans;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |