結果
| 問題 | No.1026 OGAWA's New Keyboard |
| ユーザー |
310icecrystal
|
| 提出日時 | 2023-07-05 06:36:19 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 107 ms / 1,000 ms |
| コード長 | 224 bytes |
| 記録 | |
| コンパイル時間 | 145 ms |
| コンパイル使用メモリ | 85,384 KB |
| 実行使用メモリ | 159,308 KB |
| 最終ジャッジ日時 | 2026-04-02 13:15:50 |
| 合計ジャッジ時間 | 2,199 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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