結果

問題 No.547 未知の言語
ユーザー FVRChan
提出日時 2017-09-29 12:12:43
言語 Java
(openjdk 23)
結果
AC  
実行時間 141 ms / 2,000 ms
コード長 463 bytes
コンパイル時間 2,186 ms
コンパイル使用メモリ 74,312 KB
実行使用メモリ 41,652 KB
最終ジャッジ日時 2024-06-26 02:46:48
合計ジャッジ時間 7,697 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main{
	private static Scanner sc=new Scanner(System.in);
	public static void main(String args[])throws Exception{
		int n=Integer.parseInt(sc.nextLine());
		String are1[]=sc.nextLine().split(" ");
		String are2[]=sc.nextLine().split(" ");
		for(int i=0;i<are1.length;i++){
			if(!are1[i].equals(are2[i])){
				n=i+1;break;
			}
		}System.out.println(n);
		System.out.println(are1[n-1]);
		System.out.println(are2[n-1]);
	}
}
0