結果

問題 No.1026 OGAWA's New Keyboard
ユーザー nohakai3nohakai3
提出日時 2022-07-22 19:16:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 243 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 11,708 KB
最終ジャッジ日時 2023-09-17 05:59:47
合計ジャッジ時間 4,802 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,460 KB
testcase_01 AC 18 ms
8,588 KB
testcase_02 AC 18 ms
8,424 KB
testcase_03 AC 18 ms
8,472 KB
testcase_04 TLE -
testcase_05 AC 32 ms
8,520 KB
testcase_06 AC 41 ms
8,564 KB
testcase_07 AC 565 ms
10,316 KB
testcase_08 AC 28 ms
8,544 KB
testcase_09 AC 18 ms
8,452 KB
testcase_10 AC 21 ms
8,468 KB
testcase_11 AC 20 ms
8,500 KB
testcase_12 AC 19 ms
8,452 KB
testcase_13 AC 18 ms
8,412 KB
testcase_14 AC 19 ms
8,520 KB
testcase_15 AC 19 ms
8,568 KB
testcase_16 AC 21 ms
8,524 KB
testcase_17 AC 181 ms
9,072 KB
testcase_18 AC 20 ms
8,464 KB
testcase_19 AC 163 ms
9,000 KB
testcase_20 AC 18 ms
8,424 KB
testcase_21 AC 19 ms
8,536 KB
testcase_22 AC 20 ms
8,560 KB
testcase_23 AC 21 ms
8,460 KB
testcase_24 AC 428 ms
9,820 KB
testcase_25 AC 21 ms
8,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque

dq=deque()

n=int(input())
for i in range(n):
    t,s=map(str,input().split())
    if int(t)==0:
        dq.append(s)
    else:
        dq.appendleft(s)

dq=list(dq)
ans=""
for i in dq:
    ans+=i
    
print(ans)
0