結果

問題 No.1026 OGAWA's New Keyboard
ユーザー chacoder1chacoder1
提出日時 2021-03-02 20:44:35
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 305 bytes
コンパイル時間 1,918 ms
コンパイル使用メモリ 192,356 KB
最終ジャッジ日時 2025-01-19 09:32:11
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4 TLE * 1
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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