結果
問題 |
No.1026 OGAWA's New Keyboard
|
ユーザー |
![]() |
提出日時 | 2020-12-20 18:31:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 157 ms / 1,000 ms |
コード長 | 218 bytes |
コンパイル時間 | 198 ms |
コンパイル使用メモリ | 82,424 KB |
実行使用メモリ | 85,248 KB |
最終ジャッジ日時 | 2024-09-21 12:02:40 |
合計ジャッジ時間 | 3,020 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 21 |
ソースコード
n = int(input()) from collections import deque q = deque([]) for i in range(n): t, s = map(str, input().split()) if t == '0': q.append(s) else: q.appendleft(s) q = list(q) print(''.join(q))