結果

問題 No.547 未知の言語
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-13 17:19:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 484 bytes
コンパイル時間 2,869 ms
コンパイル使用メモリ 71,344 KB
実行使用メモリ 56,620 KB
最終ジャッジ日時 2023-10-11 12:17:59
合計ジャッジ時間 8,895 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
56,056 KB
testcase_01 AC 122 ms
56,000 KB
testcase_02 AC 124 ms
55,800 KB
testcase_03 AC 123 ms
55,772 KB
testcase_04 AC 124 ms
55,700 KB
testcase_05 AC 124 ms
56,316 KB
testcase_06 AC 121 ms
56,288 KB
testcase_07 AC 124 ms
56,620 KB
testcase_08 AC 122 ms
56,400 KB
testcase_09 AC 124 ms
55,772 KB
testcase_10 AC 120 ms
55,876 KB
testcase_11 AC 124 ms
55,840 KB
testcase_12 AC 119 ms
55,916 KB
testcase_13 AC 120 ms
55,988 KB
testcase_14 AC 120 ms
55,648 KB
testcase_15 AC 120 ms
55,808 KB
testcase_16 AC 122 ms
55,872 KB
testcase_17 AC 121 ms
55,704 KB
testcase_18 AC 123 ms
56,096 KB
testcase_19 AC 122 ms
56,304 KB
testcase_20 AC 121 ms
55,896 KB
testcase_21 AC 122 ms
55,832 KB
testcase_22 AC 127 ms
55,748 KB
testcase_23 AC 123 ms
55,924 KB
testcase_24 AC 126 ms
55,792 KB
testcase_25 AC 121 ms
55,736 KB
testcase_26 AC 120 ms
54,060 KB
testcase_27 AC 122 ms
56,072 KB
testcase_28 AC 120 ms
55,904 KB
testcase_29 AC 123 ms
55,684 KB
testcase_30 AC 121 ms
55,740 KB
testcase_31 AC 122 ms
56,180 KB
testcase_32 AC 121 ms
56,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		int n = sc.nextInt();
		String[] s = new String[n];
		for (int i=0; i<n; i++) s[i] = sc.next();
		String[] t = new String[n];
		for (int i=0; i<n; i++) t[i] = sc.next();
		
		
		for (int i=0; i<n; i++) {
			if (!s[i].equals(t[i]) || n==1) {
				System.out.println(i+1);
				System.out.println(s[i]);
				System.out.println(t[i]);
				return;
			}
		}
		
	}
}
0