結果

問題 No.547 未知の言語
ユーザー cande398cande398
提出日時 2017-10-07 02:28:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 517 bytes
コンパイル時間 2,143 ms
コンパイル使用メモリ 71,564 KB
実行使用メモリ 56,432 KB
最終ジャッジ日時 2023-09-08 09:45:33
合計ジャッジ時間 7,780 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
56,220 KB
testcase_01 AC 125 ms
55,868 KB
testcase_02 AC 123 ms
56,012 KB
testcase_03 AC 124 ms
55,840 KB
testcase_04 AC 127 ms
55,856 KB
testcase_05 AC 125 ms
55,884 KB
testcase_06 AC 124 ms
56,432 KB
testcase_07 AC 125 ms
56,144 KB
testcase_08 AC 122 ms
55,980 KB
testcase_09 AC 127 ms
55,960 KB
testcase_10 AC 123 ms
56,296 KB
testcase_11 AC 125 ms
55,596 KB
testcase_12 AC 120 ms
55,828 KB
testcase_13 AC 122 ms
56,016 KB
testcase_14 AC 122 ms
56,228 KB
testcase_15 AC 124 ms
55,944 KB
testcase_16 AC 127 ms
56,076 KB
testcase_17 AC 125 ms
55,604 KB
testcase_18 AC 131 ms
55,876 KB
testcase_19 AC 127 ms
55,596 KB
testcase_20 AC 127 ms
55,840 KB
testcase_21 AC 126 ms
55,696 KB
testcase_22 AC 127 ms
55,920 KB
testcase_23 AC 124 ms
56,188 KB
testcase_24 AC 128 ms
55,704 KB
testcase_25 AC 125 ms
55,892 KB
testcase_26 AC 124 ms
55,716 KB
testcase_27 AC 126 ms
53,820 KB
testcase_28 AC 124 ms
55,824 KB
testcase_29 AC 122 ms
55,424 KB
testcase_30 AC 124 ms
55,984 KB
testcase_31 AC 124 ms
55,752 KB
testcase_32 AC 125 ms
55,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
  public static void main(String[] args){
    int i;
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    String[] str1 = new String[num];
    for(i=0;i<num;i++)str1[i] = sc.next();
    String[] str2 = new String[num];
    for(i=0;i<num;i++)str2[i] = sc.next();
    for(i=0;i<num;i++){
      if(str1[i].equals(str2[i]) == false){
        System.out.println(i+1);
        System.out.println(str1[i]);
        System.out.println(str2[i]);
      }
    }
  }
}
0