結果

問題 No.547 未知の言語
ユーザー GrenacheGrenache
提出日時 2017-07-28 22:22:36
言語 Java19
(openjdk 21)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 791 bytes
コンパイル時間 4,523 ms
コンパイル使用メモリ 72,904 KB
実行使用メモリ 57,504 KB
最終ジャッジ日時 2023-09-08 09:01:43
合計ジャッジ時間 9,034 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,388 KB
testcase_01 AC 126 ms
55,920 KB
testcase_02 AC 127 ms
56,232 KB
testcase_03 AC 126 ms
55,568 KB
testcase_04 AC 126 ms
55,888 KB
testcase_05 AC 125 ms
55,696 KB
testcase_06 AC 127 ms
55,580 KB
testcase_07 AC 128 ms
55,604 KB
testcase_08 AC 125 ms
55,504 KB
testcase_09 AC 130 ms
55,708 KB
testcase_10 AC 127 ms
55,876 KB
testcase_11 AC 128 ms
55,544 KB
testcase_12 AC 127 ms
55,636 KB
testcase_13 AC 126 ms
55,988 KB
testcase_14 AC 131 ms
55,392 KB
testcase_15 AC 129 ms
55,268 KB
testcase_16 AC 129 ms
56,000 KB
testcase_17 AC 126 ms
55,796 KB
testcase_18 AC 130 ms
55,800 KB
testcase_19 AC 127 ms
55,676 KB
testcase_20 AC 126 ms
55,608 KB
testcase_21 AC 127 ms
55,264 KB
testcase_22 AC 130 ms
55,612 KB
testcase_23 AC 129 ms
57,504 KB
testcase_24 AC 127 ms
55,792 KB
testcase_25 AC 125 ms
55,548 KB
testcase_26 AC 127 ms
55,520 KB
testcase_27 AC 131 ms
55,512 KB
testcase_28 AC 125 ms
56,248 KB
testcase_29 AC 127 ms
55,736 KB
testcase_30 AC 127 ms
55,672 KB
testcase_31 AC 129 ms
56,236 KB
testcase_32 AC 127 ms
55,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main_yukicoder547 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int n = sc.nextInt();

		String[] s = new String[n];
		String[] t = new String[n];
		for (int i = 0; i < n; i++) {
			s[i] = sc.next();
		}
		for (int i = 0; i < n; i++) {
			t[i] = sc.next();

			if (!s[i].equals(t[i])) {
				pr.println(i + 1);
				pr.println(s[i]);
				pr.println(t[i]);

				return;
			}
		}
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
0