結果

問題 No.2184 A○B問題
ユーザー Rodolphe HRodolphe H
提出日時 2023-01-13 21:32:03
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 616 bytes
コンパイル時間 2,164 ms
コンパイル使用メモリ 73,636 KB
実行使用メモリ 57,920 KB
最終ジャッジ日時 2023-08-26 03:07:33
合計ジャッジ時間 6,729 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
56,312 KB
testcase_01 AC 141 ms
55,876 KB
testcase_02 AC 140 ms
55,900 KB
testcase_03 AC 140 ms
56,168 KB
testcase_04 AC 138 ms
56,304 KB
testcase_05 AC 139 ms
55,988 KB
testcase_06 AC 138 ms
55,580 KB
testcase_07 AC 136 ms
56,284 KB
testcase_08 AC 137 ms
56,296 KB
testcase_09 AC 138 ms
55,812 KB
testcase_10 AC 138 ms
55,992 KB
testcase_11 AC 140 ms
55,612 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

/**
 * TODO
 */
public class Main {

    private static Scanner sc;

    public static void main(String[] args) {
        sc = new Scanner(System.in);

        solve();

        sc.close();
    }

    private static void solve() {

        int[] a = new int[5];
        int[] b = new int[5];
        for (int i = 0; i < 5; i++) {
            a[i] = sc.nextInt();
        }

        for (int i = 0; i < 5; i++) {
            b[i] = sc.nextInt();
        }

        for (int i = 0; i < 5; i++) {
            System.out.print(b[a[i]-1] + " ");
        }
        System.out.println();
    }

}
0