結果

問題 No.1026 OGAWA's New Keyboard
ユーザー ああいい
提出日時 2022-01-01 11:16:59
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 193 bytes
コンパイル時間 448 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 14,208 KB
最終ジャッジ日時 2024-10-09 23:04:41
合計ジャッジ時間 2,463 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 RE * 3
other RE * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
from collections import deque
q = deque()
for _ in range(T):
    t,s = input().split()
    if t == '0':
        q.appeend(s)
    else:
        q.appendleft(s)
print("".join(q))
0