結果
| 問題 |
No.1026 OGAWA's New Keyboard
|
| ユーザー |
|
| 提出日時 | 2024-12-16 11:11:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 140 ms / 1,000 ms |
| コード長 | 200 bytes |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 82,036 KB |
| 実行使用メモリ | 86,528 KB |
| 最終ジャッジ日時 | 2024-12-16 11:11:52 |
| 合計ジャッジ時間 | 3,066 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
ソースコード
from collections import deque
n=int(input())
ans=deque()
for i in range(n):
t,s=input().split()
t=int(t)
if t==0:
ans.append(s)
else:
ans.appendleft(s)
for i in ans:
print(i,end="")