結果
問題 | No.1026 OGAWA's New Keyboard |
ユーザー |
![]() |
提出日時 | 2021-03-02 20:40:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 1,699 ms |
コンパイル使用メモリ | 196,020 KB |
最終ジャッジ日時 | 2025-01-19 09:31:54 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 TLE * 1 |
other | AC * 21 |
ソースコード
#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=s+c; } else{ s=c+s; } } cout<<s<<endl; return 0; }