이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <cstdio>
#include <cstdlib>
char G[51][51];
int main (){
int N, M, i, j;
scanf("%d %d ", &N, &M);
for(i=0; i<N; ++i) fgets(G[i], sizeof(G[i]), stdin);
bool r=true;
for(i=0; i<N; ++i){
char buf[51]={};
fgets(buf, sizeof(buf), stdin);
for(j=0; j<2*M; ++j) r &= buf[j] == G[i][j/2];
}
printf("%syfa", r?"E":"Not E");
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |