Submission #148028

# Submission time Handle Problem Language Result Execution time Memory
148028 2019-08-31T11:30:46 Z llg(#3728, ioilolcom) Play Onwards (FXCUP4_onward) C++17
0 / 100
14 ms 1192 KB
#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]=='a'){
 				    ans+='y';
 			 }
 			  if(c[i]=='b'){
 					 ans+='z';
 				}
			  else{
					 char d=(char)c[i]-2;
					 ans+=d;
				}
			}
			 return ans;
}
# Verdict Execution time Memory Grader output
1 Incorrect 12 ms 1032 KB Output isn't correct
2 Incorrect 12 ms 1044 KB Output isn't correct
3 Incorrect 12 ms 1116 KB Output isn't correct
4 Incorrect 14 ms 972 KB Output isn't correct
5 Incorrect 10 ms 972 KB Output isn't correct
6 Incorrect 11 ms 1064 KB Output isn't correct
7 Incorrect 11 ms 1192 KB Output isn't correct
8 Incorrect 11 ms 1040 KB Output isn't correct
9 Incorrect 10 ms 1044 KB Output isn't correct
10 Incorrect 11 ms 972 KB Output isn't correct
11 Incorrect 12 ms 972 KB Output isn't correct
12 Incorrect 12 ms 972 KB Output isn't correct
13 Incorrect 10 ms 1044 KB Output isn't correct
14 Incorrect 11 ms 1048 KB Output isn't correct