結果

問題 No.547 未知の言語
ユーザー Pump0129Pump0129
提出日時 2018-03-26 20:59:58
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 772 bytes
コンパイル時間 1,969 ms
コンパイル使用メモリ 77,228 KB
実行使用メモリ 56,164 KB
最終ジャッジ日時 2023-09-08 10:03:44
合計ジャッジ時間 7,207 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
56,136 KB
testcase_01 AC 117 ms
55,740 KB
testcase_02 AC 116 ms
55,584 KB
testcase_03 AC 117 ms
55,476 KB
testcase_04 AC 116 ms
55,780 KB
testcase_05 AC 116 ms
55,920 KB
testcase_06 AC 118 ms
56,092 KB
testcase_07 AC 116 ms
55,896 KB
testcase_08 AC 117 ms
56,096 KB
testcase_09 AC 117 ms
55,932 KB
testcase_10 AC 115 ms
55,816 KB
testcase_11 AC 118 ms
55,720 KB
testcase_12 AC 118 ms
55,756 KB
testcase_13 AC 116 ms
55,812 KB
testcase_14 AC 116 ms
55,928 KB
testcase_15 AC 118 ms
55,976 KB
testcase_16 AC 118 ms
56,160 KB
testcase_17 AC 117 ms
56,144 KB
testcase_18 AC 119 ms
55,812 KB
testcase_19 AC 117 ms
55,916 KB
testcase_20 AC 118 ms
56,020 KB
testcase_21 AC 116 ms
55,788 KB
testcase_22 AC 130 ms
55,840 KB
testcase_23 AC 131 ms
55,964 KB
testcase_24 AC 118 ms
56,028 KB
testcase_25 AC 119 ms
56,140 KB
testcase_26 AC 117 ms
55,936 KB
testcase_27 AC 118 ms
56,152 KB
testcase_28 AC 116 ms
56,164 KB
testcase_29 AC 128 ms
55,668 KB
testcase_30 AC 128 ms
55,668 KB
testcase_31 AC 125 ms
56,012 KB
testcase_32 AC 128 ms
55,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package net.ipipip0129.yukicoder.no547;

import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        //インプット
        Scanner scan = new Scanner(System.in);

        int wordCount = Integer.parseInt(scan.nextLine());
        List<String> list_A = Arrays.asList(scan.nextLine().split(" "));
        List<String> list_B = Arrays.asList(scan.nextLine().split(" "));

        for (int i = 0; i < wordCount; i++) {
            if (!list_A.get(i).equalsIgnoreCase(list_B.get(i))){
                System.out.println(i + 1);
                System.out.println(list_A.get(i));
                System.out.println(list_B.get(i));
            }
        }
    }
}
0