結果

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

ソースコード

diff #

#include<iostream>
#include<algorithm>
using namespace std;
string L,R;
int N;
main()
{
    cin>>N;
    for(;N--;)
    {
        int i;char c;cin>>i>>c;
        (i?L:R)+=c;
    }
    reverse(L.begin(),L.end());
    cout<<L+R<<endl;
}
0