이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <stdio.h>
#include <vector>
#include <iostream>
using namespace std;
int main(){
int n, m;
scanf("%d%d",&n, &m);
char tmp = 10;
bool chk = true;
vector<vector<char> > str, str2;
str.resize(n);
for(int i=0;i<n;i++){
str[i].resize(m);
for(int j=0;j<m;j++){
while((tmp = getchar()) < 35);
str[i][j] = tmp;
}
}
tmp = 10;
str2.resize(n);
for(int i=0;i<n;i++){
str2[i].resize(2*m);
for(int j=0;j<2*m;j++){
while((tmp = getchar()) < 35);
str2[i][j] = tmp;
if(str2[i][j] != str[i][j/2])
chk = false;
}
}
if(chk)
printf("Eyfa\n");
else
printf("Not Eyfa\n");
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |