This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
import java.util.Scanner;
public class ee {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt(); // Y
int m = scanner.nextInt(); // X
String[] images = new String[n];
String[] images2x = new String[n];
for (int i = 0; i < n; i++) images[i] = scanner.next(); // 원본
for (int i = 0; i < n; i++) images2x[i] = scanner.next(); // 2배
for (int i = 0; i < images.length; i++) {
String image = images[i];
StringBuilder text = new StringBuilder();
for (char c : image.toCharArray()) {
text.append(c);
text.append(c);
}
if (!images2x[i].equals(text.toString())) {
System.out.println("Not Eyfa");
return;
}
}
System.out.println("Eyfa");
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |