結果

問題 No.547 未知の言語
ユーザー yamax3232yamax3232
提出日時 2018-03-16 13:29:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 547 bytes
コンパイル時間 2,696 ms
コンパイル使用メモリ 73,208 KB
実行使用メモリ 56,560 KB
最終ジャッジ日時 2023-09-08 10:01:41
合計ジャッジ時間 7,191 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,960 KB
testcase_01 AC 119 ms
55,856 KB
testcase_02 AC 119 ms
56,028 KB
testcase_03 AC 118 ms
56,092 KB
testcase_04 AC 119 ms
55,748 KB
testcase_05 AC 118 ms
56,560 KB
testcase_06 AC 118 ms
54,104 KB
testcase_07 AC 121 ms
55,856 KB
testcase_08 AC 119 ms
56,056 KB
testcase_09 AC 120 ms
55,856 KB
testcase_10 AC 119 ms
55,744 KB
testcase_11 AC 121 ms
55,740 KB
testcase_12 AC 119 ms
56,192 KB
testcase_13 AC 116 ms
55,988 KB
testcase_14 AC 119 ms
55,852 KB
testcase_15 AC 123 ms
55,816 KB
testcase_16 AC 121 ms
55,504 KB
testcase_17 AC 119 ms
56,036 KB
testcase_18 AC 124 ms
56,312 KB
testcase_19 AC 124 ms
55,588 KB
testcase_20 AC 119 ms
56,028 KB
testcase_21 AC 122 ms
55,856 KB
testcase_22 AC 121 ms
55,964 KB
testcase_23 AC 120 ms
56,108 KB
testcase_24 AC 124 ms
56,248 KB
testcase_25 AC 121 ms
56,208 KB
testcase_26 AC 120 ms
55,964 KB
testcase_27 AC 121 ms
56,244 KB
testcase_28 AC 121 ms
56,000 KB
testcase_29 AC 120 ms
55,856 KB
testcase_30 AC 119 ms
55,548 KB
testcase_31 AC 119 ms
56,020 KB
testcase_32 AC 119 ms
56,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner kb=new Scanner(System.in);
		int n=kb.nextInt();
		String s1[]=new String[n];
		String s2[]=new String[n];
		for(int i=0;i<n;i++){
			s1[i]=kb.next();

		}
		for(int i=0;i<n;i++){
			s2[i]=kb.next();
		}
		int num=0;
		for(int i=0;i<n;i++){
			if(!s1[i].equals(s2[i])){			
				num=i;
			}
		}
		System.out.println(num+1);
		System.out.println(s1[num]);
		System.out.println(s2[num]);
	}

}
0