結果

問題 No.1026 OGAWA's New Keyboard
ユーザー lllllll88938494
提出日時 2022-01-19 11:21:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 164 ms / 1,000 ms
コード長 203 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 84,224 KB
最終ジャッジ日時 2024-11-23 13:45:22
合計ジャッジ時間 3,641 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
n=int(input())
s=deque()
for i in range(n):
    a,b=input().split()
    if a=='0':
        s.append(b)
    else:
        s.appendleft(b)
        
print(''.join(s))
        
0