結果
| 問題 |
No.1026 OGAWA's New Keyboard
|
| ユーザー |
rlangevin
|
| 提出日時 | 2024-09-19 08:52:35 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 155 ms / 1,000 ms |
| コード長 | 199 bytes |
| コンパイル時間 | 1,077 ms |
| コンパイル使用メモリ | 82,236 KB |
| 実行使用メモリ | 90,056 KB |
| 最終ジャッジ日時 | 2024-09-19 08:52:39 |
| 合計ジャッジ時間 | 3,174 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
ソースコード
from collections import *
N = int(input())
Q = deque()
for _ in range(N):
t, s = input().split()
if t == "0":
Q.append(s)
else:
Q.appendleft(s)
print(*Q, sep="")
rlangevin