結果

問題 No.547 未知の言語
ユーザー fal_rndfal_rnd
提出日時 2017-07-28 22:22:50
言語 Java19
(openjdk 21)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 731 bytes
コンパイル時間 2,576 ms
コンパイル使用メモリ 79,108 KB
実行使用メモリ 56,184 KB
最終ジャッジ日時 2023-09-08 08:18:14
合計ジャッジ時間 8,095 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
56,136 KB
testcase_01 AC 129 ms
55,876 KB
testcase_02 AC 126 ms
55,980 KB
testcase_03 AC 127 ms
55,860 KB
testcase_04 AC 129 ms
55,764 KB
testcase_05 AC 129 ms
55,636 KB
testcase_06 AC 129 ms
55,820 KB
testcase_07 AC 131 ms
55,572 KB
testcase_08 AC 125 ms
55,660 KB
testcase_09 AC 130 ms
55,864 KB
testcase_10 AC 124 ms
55,808 KB
testcase_11 AC 129 ms
55,288 KB
testcase_12 AC 129 ms
56,024 KB
testcase_13 AC 126 ms
55,544 KB
testcase_14 AC 127 ms
55,648 KB
testcase_15 AC 127 ms
55,860 KB
testcase_16 AC 130 ms
55,756 KB
testcase_17 AC 134 ms
53,796 KB
testcase_18 AC 132 ms
55,600 KB
testcase_19 AC 126 ms
55,600 KB
testcase_20 AC 129 ms
55,360 KB
testcase_21 AC 130 ms
55,348 KB
testcase_22 AC 129 ms
55,888 KB
testcase_23 AC 129 ms
55,696 KB
testcase_24 AC 132 ms
55,632 KB
testcase_25 AC 131 ms
55,420 KB
testcase_26 AC 128 ms
55,520 KB
testcase_27 AC 129 ms
55,288 KB
testcase_28 AC 127 ms
55,836 KB
testcase_29 AC 128 ms
55,580 KB
testcase_30 AC 128 ms
55,804 KB
testcase_31 AC 127 ms
55,648 KB
testcase_32 AC 126 ms
56,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{
	static final Scanner s=new Scanner(System.in);
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static IntStream INS(int n){return REPS(n).map(i->getInt());}
	static int getInt(){return Integer.parseInt(s.next());}

	public static void main(String[]$){
		int n=getInt();
		String[]a=REPS(n).mapToObj(i->s.next()).toArray(String[]::new);
		String[]b=REPS(n).mapToObj(i->s.next()).toArray(String[]::new);

		for(int i=0;i<n;++i)
			if(!a[i].equals(b[i])) {
				System.out.println(i+1);
				System.out.println(a[i]);
				System.out.println(b[i]);
				break;
			}
	}
}
0