結果
| 問題 | No.1026 OGAWA's New Keyboard |
| ユーザー |
|
| 提出日時 | 2020-05-10 20:57:36 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 373 ms / 1,000 ms |
| コード長 | 225 bytes |
| 記録 | |
| コンパイル時間 | 375 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 15,440 KB |
| 最終ジャッジ日時 | 2026-04-05 10:13:48 |
| 合計ジャッジ時間 | 4,465 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
ソースコード
from collections import deque
N = int(input())
ans = deque()
for i in range(N):
T, S = input().split()
if T == "0":
ans.append(S)
else:
ans.appendleft(S)
for s in ans:
print(s, end="")
print()