結果

問題 No.1026 OGAWA's New Keyboard
ユーザー phspls
提出日時 2020-04-16 23:35:34
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 353 bytes
コンパイル時間 1,592 ms
コンパイル使用メモリ 168,108 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-03 03:58:53
合計ジャッジ時間 3,842 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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() {
    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