結果

問題 No.547 未知の言語
ユーザー YamaKasaYamaKasa
提出日時 2018-05-06 22:28:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 522 bytes
コンパイル時間 3,054 ms
コンパイル使用メモリ 71,556 KB
実行使用メモリ 56,416 KB
最終ジャッジ日時 2023-09-10 10:49:45
合計ジャッジ時間 8,324 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,724 KB
testcase_01 AC 122 ms
55,488 KB
testcase_02 AC 122 ms
56,108 KB
testcase_03 AC 122 ms
55,692 KB
testcase_04 AC 124 ms
55,904 KB
testcase_05 AC 125 ms
55,756 KB
testcase_06 AC 124 ms
55,980 KB
testcase_07 AC 126 ms
55,864 KB
testcase_08 AC 123 ms
55,696 KB
testcase_09 AC 126 ms
55,884 KB
testcase_10 AC 123 ms
56,032 KB
testcase_11 AC 124 ms
55,848 KB
testcase_12 AC 123 ms
55,436 KB
testcase_13 AC 123 ms
56,308 KB
testcase_14 AC 123 ms
55,760 KB
testcase_15 AC 123 ms
55,900 KB
testcase_16 AC 125 ms
56,156 KB
testcase_17 AC 121 ms
55,564 KB
testcase_18 AC 124 ms
55,792 KB
testcase_19 AC 122 ms
56,072 KB
testcase_20 AC 122 ms
56,256 KB
testcase_21 AC 124 ms
56,020 KB
testcase_22 AC 127 ms
55,832 KB
testcase_23 AC 122 ms
55,592 KB
testcase_24 AC 125 ms
55,680 KB
testcase_25 AC 122 ms
56,080 KB
testcase_26 AC 122 ms
55,472 KB
testcase_27 AC 123 ms
56,416 KB
testcase_28 AC 121 ms
56,012 KB
testcase_29 AC 122 ms
56,020 KB
testcase_30 AC 122 ms
55,896 KB
testcase_31 AC 123 ms
55,892 KB
testcase_32 AC 123 ms
56,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		String []S = new String[N];
		String []T = new String[N];
		for(int i = 0; i < N; i++) {
			S[i] = scan.next();
		}
		for(int i = 0; i < N; i++) {
			T[i] = scan.next();
		}
		scan.close();
		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