結果

問題 No.1026 OGAWA's New Keyboard
ユーザー gorugo30
提出日時 2021-02-25 10:25:09
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 170 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 82,056 KB
実行使用メモリ 267,540 KB
最終ジャッジ日時 2024-09-25 09:01:41
合計ジャッジ時間 3,242 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4 TLE * 1
other -- * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

head = ""
tail = ""
N = int(input())
for i in range(N):
    T, S = input().split()
    if T == "0":
        tail += S
    else:
        head += S
print(head[::-1] + tail)
0