結果
| 問題 |
No.1026 OGAWA's New Keyboard
|
| ユーザー |
👑 |
| 提出日時 | 2020-04-14 16:19:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 1,000 ms |
| コード長 | 364 bytes |
| コンパイル時間 | 590 ms |
| コンパイル使用メモリ | 70,144 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-16 04:58:52 |
| 合計ジャッジ時間 | 1,463 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
ソースコード
#include <iostream>
#include <deque>
using namespace std;
int main(){
int n;cin>>n;
deque<char> A;
for(int i = 0; n > i; i++){
int z;char y;cin>>z>>y;
if(z){
A.push_front(y);
}else{
A.push_back(y);
}
}
for(int i = 0; n > i; i++){
cout << A.front();
A.pop_front();
}
}