結果

問題 No.547 未知の言語
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-09 13:06:52
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 462 bytes
コンパイル時間 2,397 ms
コンパイル使用メモリ 71,164 KB
実行使用メモリ 56,460 KB
最終ジャッジ日時 2023-09-08 09:56:56
合計ジャッジ時間 7,657 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,820 KB
testcase_01 AC 118 ms
56,460 KB
testcase_02 AC 117 ms
56,308 KB
testcase_03 AC 119 ms
55,808 KB
testcase_04 AC 120 ms
56,028 KB
testcase_05 AC 120 ms
56,000 KB
testcase_06 AC 120 ms
55,856 KB
testcase_07 AC 118 ms
56,188 KB
testcase_08 AC 118 ms
56,000 KB
testcase_09 AC 119 ms
56,332 KB
testcase_10 AC 119 ms
55,812 KB
testcase_11 AC 119 ms
55,540 KB
testcase_12 AC 119 ms
56,192 KB
testcase_13 AC 118 ms
55,792 KB
testcase_14 AC 120 ms
55,864 KB
testcase_15 AC 120 ms
55,996 KB
testcase_16 AC 119 ms
56,056 KB
testcase_17 AC 121 ms
56,176 KB
testcase_18 AC 124 ms
55,824 KB
testcase_19 AC 121 ms
55,936 KB
testcase_20 AC 121 ms
55,780 KB
testcase_21 AC 126 ms
56,064 KB
testcase_22 AC 126 ms
55,856 KB
testcase_23 AC 120 ms
55,808 KB
testcase_24 AC 121 ms
55,988 KB
testcase_25 AC 120 ms
56,156 KB
testcase_26 AC 123 ms
55,992 KB
testcase_27 AC 121 ms
56,228 KB
testcase_28 AC 120 ms
55,964 KB
testcase_29 AC 120 ms
56,212 KB
testcase_30 AC 119 ms
56,204 KB
testcase_31 AC 118 ms
55,816 KB
testcase_32 AC 120 ms
56,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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