結果
問題 |
No.2827 Enter User Name to Play
|
ユーザー |
![]() |
提出日時 | 2025-04-17 18:12:56 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 260 bytes |
コンパイル時間 | 2,690 ms |
コンパイル使用メモリ | 78,100 KB |
実行使用メモリ | 10,784 KB |
最終ジャッジ日時 | 2025-04-17 18:13:07 |
合計ジャッジ時間 | 8,760 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | OLE * 1 -- * 21 |
ソースコード
#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]; } } }