結果
| 問題 | 
                            No.2827 Enter User Name to Play
                             | 
                    
| コンテスト | |
| ユーザー | 
                             vjudge1
                         | 
                    
| 提出日時 | 2025-04-17 18:20:36 | 
| 言語 | C++17(gcc12)  (gcc 12.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 278 bytes | 
| コンパイル時間 | 4,772 ms | 
| コンパイル使用メモリ | 207,624 KB | 
| 実行使用メモリ | 7,844 KB | 
| 最終ジャッジ日時 | 2025-04-17 18:20:46 | 
| 合計ジャッジ時間 | 5,830 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 22 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define ll long long 
int main(){
    int n;
	cin>>n;
    string s;
    cin>>s;
    string t;
    t[0]='f';
    t.append(s);
    for(int i=0;i<n;i++){
    	int tf;
    	cin>>tf;
    	int n = tf-1;
    	cout<<t[n];
	}
    return 0;
}
            
            
            
        
            
vjudge1