답안 #148026

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
148026 2019-08-31T11:29:14 Z llg(#3728, ioilolcom) Play Onwards (FXCUP4_onward) C++17
14.2857 / 100
12 ms 1196 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]=='z'){
 				    ans+='b';
 			 }
 			  if(c[i]=='y'){
 					 ans+='a';
 				}
			  else{
					 char d=(char)c[i]+2;
					 ans+=d;
				}
			}
			 return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 12 ms 1044 KB Output isn't correct
2 Correct 12 ms 1196 KB Output is correct
3 Incorrect 10 ms 1084 KB Output isn't correct
4 Correct 11 ms 1144 KB Output is correct
5 Incorrect 12 ms 1036 KB Output isn't correct
6 Incorrect 12 ms 1040 KB Output isn't correct
7 Incorrect 10 ms 1036 KB Output isn't correct
8 Incorrect 10 ms 1196 KB Output isn't correct
9 Incorrect 11 ms 1188 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 11 ms 1068 KB Output isn't correct
13 Incorrect 11 ms 1044 KB Output isn't correct
14 Incorrect 10 ms 1044 KB Output isn't correct