結果

問題 No.1026 OGAWA's New Keyboard
ユーザー 👑 CleyLCleyL
提出日時 2020-04-14 16:24:15
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 48 ms / 1,000 ms
コード長 219 bytes
コンパイル時間 1,667 ms
コンパイル使用メモリ 169,804 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-16 04:59:00
合計ジャッジ時間 2,636 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 21
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int n,z,i;
main(){
	cin>>n;
	deque<char> A;
	for(i=0;n>i;i++){char y;cin>>z>>y;if(z)A.push_front(y);else A.push_back(y);}
	for(i=0;n>i;i++){cout<<A.front();A.pop_front();}
}
0