結果

問題 No.547 未知の言語
ユーザー tentententen
提出日時 2020-11-12 08:44:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 612 bytes
コンパイル時間 1,800 ms
コンパイル使用メモリ 71,632 KB
実行使用メモリ 56,308 KB
最終ジャッジ日時 2023-09-30 01:04:59
合計ジャッジ時間 7,346 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
56,160 KB
testcase_01 AC 115 ms
56,028 KB
testcase_02 AC 114 ms
55,984 KB
testcase_03 AC 115 ms
55,856 KB
testcase_04 AC 116 ms
55,748 KB
testcase_05 AC 116 ms
55,692 KB
testcase_06 AC 115 ms
56,224 KB
testcase_07 AC 116 ms
55,512 KB
testcase_08 AC 115 ms
55,712 KB
testcase_09 AC 117 ms
55,528 KB
testcase_10 AC 115 ms
55,968 KB
testcase_11 AC 116 ms
55,856 KB
testcase_12 AC 116 ms
56,052 KB
testcase_13 AC 116 ms
55,944 KB
testcase_14 AC 121 ms
55,524 KB
testcase_15 AC 116 ms
55,996 KB
testcase_16 AC 119 ms
56,144 KB
testcase_17 AC 116 ms
55,940 KB
testcase_18 AC 119 ms
55,956 KB
testcase_19 AC 116 ms
55,696 KB
testcase_20 AC 116 ms
56,024 KB
testcase_21 AC 120 ms
56,152 KB
testcase_22 AC 122 ms
56,308 KB
testcase_23 AC 126 ms
55,640 KB
testcase_24 AC 117 ms
55,684 KB
testcase_25 AC 116 ms
55,540 KB
testcase_26 AC 117 ms
55,988 KB
testcase_27 AC 118 ms
55,904 KB
testcase_28 AC 119 ms
56,064 KB
testcase_29 AC 116 ms
55,744 KB
testcase_30 AC 116 ms
56,244 KB
testcase_31 AC 115 ms
56,200 KB
testcase_32 AC 116 ms
56,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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