結果

問題 No.547 未知の言語
ユーザー GodNegotoGodNegoto
提出日時 2019-12-03 15:23:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 524 bytes
コンパイル時間 3,214 ms
コンパイル使用メモリ 72,432 KB
実行使用メモリ 56,060 KB
最終ジャッジ日時 2023-08-18 04:59:29
合計ジャッジ時間 8,981 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,472 KB
testcase_01 AC 122 ms
55,892 KB
testcase_02 AC 124 ms
55,432 KB
testcase_03 AC 122 ms
56,012 KB
testcase_04 AC 125 ms
55,548 KB
testcase_05 AC 126 ms
55,708 KB
testcase_06 AC 125 ms
56,060 KB
testcase_07 AC 125 ms
55,760 KB
testcase_08 AC 123 ms
55,716 KB
testcase_09 AC 125 ms
55,900 KB
testcase_10 AC 122 ms
55,520 KB
testcase_11 AC 125 ms
55,852 KB
testcase_12 AC 128 ms
55,476 KB
testcase_13 AC 122 ms
55,852 KB
testcase_14 AC 122 ms
55,948 KB
testcase_15 AC 122 ms
55,996 KB
testcase_16 AC 124 ms
55,716 KB
testcase_17 AC 121 ms
55,512 KB
testcase_18 AC 126 ms
55,932 KB
testcase_19 AC 123 ms
55,888 KB
testcase_20 AC 123 ms
55,756 KB
testcase_21 AC 125 ms
55,516 KB
testcase_22 AC 126 ms
55,896 KB
testcase_23 AC 122 ms
55,736 KB
testcase_24 AC 125 ms
55,796 KB
testcase_25 AC 122 ms
55,904 KB
testcase_26 AC 122 ms
55,872 KB
testcase_27 AC 125 ms
55,964 KB
testcase_28 AC 122 ms
55,716 KB
testcase_29 AC 120 ms
55,748 KB
testcase_30 AC 122 ms
55,808 KB
testcase_31 AC 121 ms
55,912 KB
testcase_32 AC 121 ms
56,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package algo;

import java.util.*;

public class sample7 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String[] s1 = new String[N];
		String[] s2 = new String[N];
		for(int i=0; i < N; i++) {
			s1[i] = sc.next();
		}
		for(int i=0; i<N; i++) {
			s2[i] = sc.next();
		}
		for(int i=0; i < N; i++) {
			if(s1[i].equals(s2[i])) {
			}
			else {
				System.out.println(i+1);
				System.out.println(s1[i]);
				System.out.println(s2[i]);
				return;
			}
		}
	}
}
0