結果

問題 No.547 未知の言語
ユーザー YOSHIYOSHI
提出日時 2021-03-18 22:49:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 567 bytes
コンパイル時間 3,422 ms
コンパイル使用メモリ 73,176 KB
実行使用メモリ 37,208 KB
最終ジャッジ日時 2024-04-28 13:10:20
合計ジャッジ時間 5,426 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
37,072 KB
testcase_01 AC 47 ms
37,208 KB
testcase_02 AC 47 ms
37,012 KB
testcase_03 AC 49 ms
37,068 KB
testcase_04 AC 47 ms
37,160 KB
testcase_05 AC 46 ms
37,160 KB
testcase_06 AC 46 ms
36,836 KB
testcase_07 AC 48 ms
37,196 KB
testcase_08 AC 48 ms
37,036 KB
testcase_09 AC 47 ms
36,624 KB
testcase_10 AC 46 ms
36,940 KB
testcase_11 AC 46 ms
36,812 KB
testcase_12 AC 48 ms
36,808 KB
testcase_13 AC 47 ms
37,192 KB
testcase_14 AC 46 ms
37,008 KB
testcase_15 AC 46 ms
36,584 KB
testcase_16 AC 47 ms
37,160 KB
testcase_17 AC 46 ms
36,888 KB
testcase_18 AC 47 ms
36,556 KB
testcase_19 AC 47 ms
36,540 KB
testcase_20 AC 45 ms
37,164 KB
testcase_21 AC 46 ms
36,820 KB
testcase_22 AC 46 ms
36,552 KB
testcase_23 AC 47 ms
37,092 KB
testcase_24 AC 47 ms
37,104 KB
testcase_25 AC 47 ms
36,936 KB
testcase_26 AC 48 ms
37,136 KB
testcase_27 AC 46 ms
37,164 KB
testcase_28 AC 47 ms
37,056 KB
testcase_29 AC 47 ms
36,920 KB
testcase_30 AC 47 ms
37,084 KB
testcase_31 AC 49 ms
36,840 KB
testcase_32 AC 45 ms
36,916 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000547_Main {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		int n = Integer.parseInt(br.readLine());
		String[] s = br.readLine().split(" ");
		String[] t = br.readLine().split(" ");
		for(int i = 0; i < n; i++) {
			if(!s[i].equals(t[i])) {
				System.out.println(i + 1);
				System.out.println(s[i]);
				System.out.println(t[i]);
				break;
			}
		}
	}
}
0