結果
| 問題 |
No.1026 OGAWA's New Keyboard
|
| ユーザー |
👑 |
| 提出日時 | 2020-04-14 16:37:23 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 1,000 ms |
| コード長 | 203 bytes |
| コンパイル時間 | 1,788 ms |
| コンパイル使用メモリ | 169,976 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-16 05:00:21 |
| 合計ジャッジ時間 | 2,930 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main(){
| ^~~~
ソースコード
#include <bits/stdc++.h>
using namespace std;
int n,z,i;char y;
main(){
cin>>n;
deque<char> A;
while(cin>>z>>y){if(z)A.push_front(y);else A.push_back(y);}
while(n--){cout<<A.front();A.pop_front();}
}