Submission #464385

#TimeUsernameProblemLanguageResultExecution timeMemory
464385fuad27Password (RMI18_password)C++14
0 / 100
486 ms4040 KiB
#include<bits/stdc++.h> using namespace std; int query(string s); string guess(int n, int s) { string ans = ""; for(int i = 0;i<s;i++) { ans+=char(i+'a'); } unordered_map<string, int> used; do { if(used[ans])continue; used[ans] = true; if(query(ans.substr(0, n)) == n)return ans.substr(0, n); }while(next_permutation(ans.begin(), ans.end())); return ""; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...