結果

問題 No.547 未知の言語
ユーザー yamax3232yamax3232
提出日時 2018-03-16 12:35:53
言語 Java19
(openjdk 21)
結果
WA  
実行時間 -
コード長 564 bytes
コンパイル時間 2,163 ms
コンパイル使用メモリ 71,576 KB
実行使用メモリ 57,712 KB
最終ジャッジ日時 2023-09-08 10:01:27
合計ジャッジ時間 7,774 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,548 KB
testcase_01 AC 127 ms
56,232 KB
testcase_02 AC 123 ms
55,792 KB
testcase_03 AC 123 ms
55,776 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 128 ms
55,624 KB
testcase_09 WA -
testcase_10 AC 127 ms
55,768 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 125 ms
55,700 KB
testcase_14 WA -
testcase_15 AC 126 ms
55,664 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 126 ms
55,780 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 124 ms
55,416 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 124 ms
55,632 KB
testcase_29 AC 123 ms
55,812 KB
testcase_30 WA -
testcase_31 AC 124 ms
55,312 KB
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Collections;
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]!=s2[i]){
				num=i;
			}
		}
		System.out.println(num+1);
		System.out.println(s1[num]);
		System.out.println(s2[num]);
	}

}
0