# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
148026 | llg (#201) | Play Onwards (FXCUP4_onward) | C++17 | 12 ms | 1196 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 "make.h"
#include <bits/stdc++.h>
using namespace std;
std::string MakeWord(int N, int M, std::vector<std::string> Dict) {
string ans="";
string c=Dict[0];
for(int i=0;i<(int)c.length();i++){
if(c[i]=='z'){
ans+='b';
}
if(c[i]=='y'){
ans+='a';
}
else{
char d=(char)c[i]+2;
ans+=d;
}
}
return ans;
}
#include "guess.h"
#include <bits/stdc++.h>
using namespace std;
std::string GuessWord(int M, std::string YH){
string ans="";
string c=YH;
for(int i=0;i<(int)c.length();i++){
if(c[i]=='z'){
ans+='b';
}
if(c[i]=='y'){
ans+='a';
}
else{
char d=(char)c[i]+2;
ans+=d;
}
}
return ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |