結果

問題 No.2827 Enter User Name to Play
ユーザー vjudge1
提出日時 2025-04-17 18:48:19
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 478 bytes
コンパイル時間 3,394 ms
コンパイル使用メモリ 75,900 KB
実行使用メモリ 54,200 KB
最終ジャッジ日時 2025-04-17 18:48:27
合計ジャッジ時間 7,379 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

       int n=sc.nextInt();
       sc.nextLine();
       String s=sc.nextLine();
       int [] p=new int[n];
        for (int i = 0; i <n ; i++) {
            p[i]=sc.nextInt();
            
            
        }
        for (int i = 0; i < n; i++) {
            System.out.println(s.charAt(p[i]-1));
            
        }
sc.close();

    }
}
0