結果

問題 No.1026 OGAWA's New Keyboard
ユーザー phsplsphspls
提出日時 2020-04-16 23:42:39
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 403 bytes
コンパイル時間 1,323 ms
コンパイル使用メモリ 168,356 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-03 04:08:20
合計ジャッジ時間 3,791 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4 TLE * 1
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define llong long long

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);

    int n;
    cin >> n;
    string result = ""s;
    rep(i, n) {
        int t;
        char c;
        cin >> t >> c;
        if(t) result = c + result;
        else result += c;
    }
    cout << result << "\n";
}
0