結果
問題 |
No.1026 OGAWA's New Keyboard
|
ユーザー |
![]() |
提出日時 | 2020-04-17 22:34:40 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 471 ms / 1,000 ms |
コード長 | 222 bytes |
コンパイル時間 | 235 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 14,208 KB |
最終ジャッジ日時 | 2024-09-16 05:03:30 |
合計ジャッジ時間 | 2,982 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 21 |
ソースコード
# coding: utf-8 # Your code here! from collections import deque N=int(input()) d=deque() for _ in range(N): T,S=input().split() if T=="0": d.append(S) else: d.appendleft(S) print("".join(d))