結果
問題 |
No.2184 A○B問題
|
ユーザー |
|
提出日時 | 2023-01-13 21:32:03 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 616 bytes |
コンパイル時間 | 2,208 ms |
コンパイル使用メモリ | 76,740 KB |
実行使用メモリ | 41,704 KB |
最終ジャッジ日時 | 2024-12-24 16:37:41 |
合計ジャッジ時間 | 6,394 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 12 |
ソースコード
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(); } }