結果

問題 No.547 未知の言語
ユーザー aikon_marimoaikon_marimo
提出日時 2018-02-03 22:38:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 480 bytes
コンパイル時間 2,001 ms
コンパイル使用メモリ 72,868 KB
実行使用メモリ 56,492 KB
最終ジャッジ日時 2023-09-08 09:55:17
合計ジャッジ時間 7,110 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
56,108 KB
testcase_01 AC 124 ms
55,976 KB
testcase_02 AC 122 ms
55,848 KB
testcase_03 AC 123 ms
55,856 KB
testcase_04 AC 121 ms
55,532 KB
testcase_05 AC 123 ms
55,968 KB
testcase_06 AC 115 ms
56,080 KB
testcase_07 AC 115 ms
55,880 KB
testcase_08 AC 114 ms
56,052 KB
testcase_09 AC 116 ms
55,904 KB
testcase_10 AC 116 ms
55,884 KB
testcase_11 AC 116 ms
56,116 KB
testcase_12 AC 117 ms
56,028 KB
testcase_13 AC 116 ms
54,220 KB
testcase_14 AC 118 ms
56,212 KB
testcase_15 AC 117 ms
55,764 KB
testcase_16 AC 117 ms
54,152 KB
testcase_17 AC 117 ms
56,116 KB
testcase_18 AC 116 ms
55,688 KB
testcase_19 AC 117 ms
56,344 KB
testcase_20 AC 117 ms
56,204 KB
testcase_21 AC 120 ms
55,796 KB
testcase_22 AC 118 ms
56,492 KB
testcase_23 AC 116 ms
56,200 KB
testcase_24 AC 116 ms
56,476 KB
testcase_25 AC 115 ms
56,008 KB
testcase_26 AC 120 ms
55,716 KB
testcase_27 AC 115 ms
56,308 KB
testcase_28 AC 115 ms
55,756 KB
testcase_29 AC 116 ms
56,132 KB
testcase_30 AC 116 ms
55,976 KB
testcase_31 AC 116 ms
56,092 KB
testcase_32 AC 119 ms
56,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int N = Integer.parseInt(in.nextLine());
		String S = in.nextLine();
		String T = in.nextLine();
		
		String[] Sattr = S.split(" ");
		String[] Tattr = T.split(" ");
		
		for (int i = 0; i < N; i++) {
			if (!Sattr[i].equals(Tattr[i])) {
				System.out.println(i+1);
				System.out.println(Sattr[i]);
				System.out.println(Tattr[i]);
				break;
			}
		}
	}
}
0