結果
問題 |
No.2827 Enter User Name to Play
|
ユーザー |
![]() |
提出日時 | 2025-04-17 18:12:15 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 260 bytes |
コンパイル時間 | 682 ms |
コンパイル使用メモリ | 78,228 KB |
実行使用メモリ | 7,840 KB |
最終ジャッジ日時 | 2025-04-17 18:12:24 |
合計ジャッジ時間 | 6,012 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 OLE * 1 -- * 1 |
other | -- * 22 |
ソースコード
#include<iostream> #define n 3 using namespace std; int main(){ int a; int c[n]; cin>>a; string s[n]; for(int i=0; i<n; i++){ cin>>s[i]; } for(int i=0; i<n; i++){ cin>>c[i]; if(c[i]==i+1){ cout<<s[i]; } else{ cout<<s[i+1]; } } }