結果

問題 No.547 未知の言語
ユーザー 37zigen37zigen
提出日時 2020-01-23 05:20:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 492 bytes
コンパイル時間 2,020 ms
コンパイル使用メモリ 71,068 KB
実行使用メモリ 56,548 KB
最終ジャッジ日時 2023-09-25 10:08:44
合計ジャッジ時間 7,772 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,204 KB
testcase_01 AC 123 ms
55,948 KB
testcase_02 AC 122 ms
56,036 KB
testcase_03 AC 122 ms
55,732 KB
testcase_04 AC 122 ms
55,756 KB
testcase_05 AC 122 ms
55,776 KB
testcase_06 AC 122 ms
56,548 KB
testcase_07 AC 123 ms
56,384 KB
testcase_08 AC 123 ms
55,656 KB
testcase_09 AC 124 ms
55,764 KB
testcase_10 AC 123 ms
55,696 KB
testcase_11 AC 126 ms
55,640 KB
testcase_12 AC 123 ms
56,116 KB
testcase_13 AC 120 ms
55,940 KB
testcase_14 AC 122 ms
55,584 KB
testcase_15 AC 122 ms
55,516 KB
testcase_16 AC 123 ms
55,716 KB
testcase_17 AC 123 ms
55,680 KB
testcase_18 AC 125 ms
55,904 KB
testcase_19 AC 121 ms
55,580 KB
testcase_20 AC 123 ms
55,804 KB
testcase_21 AC 123 ms
55,712 KB
testcase_22 AC 128 ms
56,104 KB
testcase_23 AC 122 ms
55,724 KB
testcase_24 AC 124 ms
55,884 KB
testcase_25 AC 122 ms
55,724 KB
testcase_26 AC 123 ms
56,192 KB
testcase_27 AC 124 ms
56,148 KB
testcase_28 AC 122 ms
56,200 KB
testcase_29 AC 123 ms
55,756 KB
testcase_30 AC 123 ms
55,904 KB
testcase_31 AC 122 ms
55,752 KB
testcase_32 AC 122 ms
56,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;

class Main{
	public static void main(String[] args){
		new Main().run();
	}
	
	void run(){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		String[] S=new String[n];
		String[] T=new String[n];
		for(int i=0;i<n;++i){
			S[i]=sc.next();
		}
		for(int i=0;i<n;++i){
			T[i]=sc.next();
		}
		for(int i=0;i<n;++i){
			if(!S[i].equals(T[i])){
				System.out.println(i+1);
				System.out.println(S[i]);
				System.out.println(T[i]);
			}
		}
	}
}
0