結果
問題 |
No.2827 Enter User Name to Play
|
ユーザー |
![]() |
提出日時 | 2025-04-17 18:44:58 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 331 bytes |
コンパイル時間 | 697 ms |
コンパイル使用メモリ | 66,408 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-04-17 18:45:00 |
合計ジャッジ時間 | 1,677 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 22 |
ソースコード
#include <iostream> using namespace std; int main() { int n; cin>>n; cout<<n; string s1; cin>>s1; cout<<s1; int arr[n]; for(int i=0;i<n;i++){ cin>>arr[i]; } string s2; for(int i=0;i<n;i++){ s2[i]=s1[arr[i]-1]; } cout<<s2; return 0; }