제출 #286919

#제출 시각아이디문제언어결과실행 시간메모리
286919crossing0verPassword (RMI18_password)C++17
30 / 100
595 ms256 KiB
#include<bits/stdc++.h> #define ll long long #define pb push_back #define pii pair<int,int> #define vi vector<int> #define fi first #define se second #define all(x) (x).begin(),(x).end() using namespace std; int m; string suf,pref; int query(string str); string guess(int n, int s) { for (int i = 1; i <= n; i++) { int len = suf.size(); char LAST = 'a'; string pref,P; int cur = len; for (int z = 1; z + len <= n; z++) { for (char c = 'a'; c < 'a' + s; c++) { P = pref + c; P += suf; int F = query(P); if (F > cur) { LAST = c; pref += c; cur = F; break; } } } reverse(all(suf)); suf+=LAST; reverse(all(suf)); } return suf; } /* main() { ios::sync_with_stdio(0); cin.tie(0); }*/
#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...