結果

問題 No.547 未知の言語
ユーザー tsunabittsunabit
提出日時 2018-07-08 17:54:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 517 bytes
コンパイル時間 3,888 ms
コンパイル使用メモリ 76,084 KB
実行使用メモリ 56,096 KB
最終ジャッジ日時 2023-09-22 02:50:24
合計ジャッジ時間 10,317 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
55,900 KB
testcase_01 AC 131 ms
55,428 KB
testcase_02 AC 133 ms
55,760 KB
testcase_03 AC 133 ms
55,536 KB
testcase_04 AC 128 ms
55,620 KB
testcase_05 AC 131 ms
56,096 KB
testcase_06 AC 133 ms
55,564 KB
testcase_07 AC 132 ms
55,700 KB
testcase_08 AC 136 ms
55,736 KB
testcase_09 AC 135 ms
56,056 KB
testcase_10 AC 128 ms
55,700 KB
testcase_11 AC 132 ms
55,568 KB
testcase_12 AC 130 ms
55,776 KB
testcase_13 AC 129 ms
55,720 KB
testcase_14 AC 128 ms
55,824 KB
testcase_15 AC 130 ms
55,668 KB
testcase_16 AC 130 ms
55,892 KB
testcase_17 AC 129 ms
55,364 KB
testcase_18 AC 130 ms
55,876 KB
testcase_19 AC 127 ms
55,808 KB
testcase_20 AC 132 ms
55,812 KB
testcase_21 AC 128 ms
55,876 KB
testcase_22 AC 132 ms
55,880 KB
testcase_23 AC 129 ms
55,360 KB
testcase_24 AC 131 ms
55,604 KB
testcase_25 AC 130 ms
55,380 KB
testcase_26 AC 128 ms
55,880 KB
testcase_27 AC 129 ms
55,612 KB
testcase_28 AC 130 ms
55,480 KB
testcase_29 AC 127 ms
55,560 KB
testcase_30 AC 130 ms
55,596 KB
testcase_31 AC 130 ms
55,760 KB
testcase_32 AC 129 ms
55,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.Stream;
import java.time.*;
import java.time.format.*;

public class No547 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());
		String[] s = sc.nextLine().split(" ", 0);
		String[] t = sc.nextLine().split(" ", 0);
		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]);
				return;
			}
		}
	}
}
0