結果
| 問題 |
No.1026 OGAWA's New Keyboard
|
| ユーザー |
310icecrystal
|
| 提出日時 | 2023-07-05 06:36:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 155 ms / 1,000 ms |
| コード長 | 224 bytes |
| コンパイル時間 | 488 ms |
| コンパイル使用メモリ | 82,192 KB |
| 実行使用メモリ | 85,048 KB |
| 最終ジャッジ日時 | 2024-07-19 01:03:42 |
| 合計ジャッジ時間 | 2,704 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
ソースコード
N = int(input())
from collections import deque
Deq = deque()
for _ in range(N):
t,s = map(str,input().split())
if t == "0":
Deq.append(s)
else:
Deq.appendleft(s)
li = list(Deq)
print("".join(li))
310icecrystal