結果
| 問題 | 
                            No.2827 Enter User Name to Play
                             | 
                    
| コンテスト | |
| ユーザー | 
                             vjudge1
                         | 
                    
| 提出日時 | 2025-04-17 18:36:52 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 262 bytes | 
| コンパイル時間 | 559 ms | 
| コンパイル使用メモリ | 61,620 KB | 
| 実行使用メモリ | 7,848 KB | 
| 最終ジャッジ日時 | 2025-04-17 18:36:54 | 
| 合計ジャッジ時間 | 1,698 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 2 | 
| other | AC * 5 WA * 17 | 
ソースコード
#include<iostream>
using namespace std;
int main(){
	int N;
	cin >> N;
	string S;
	cin >> S;
	int P[N];
	char temp[N];
	int i;
	for(i = 0; i < N; i++)
	{
		cin >> P[i];
	}
	for(i = 0; i < N; i++)
	{
		int num = P[i];
		temp[i] = S[num - 1];
	}
	cout << temp;
}
            
            
            
        
            
vjudge1