結果

問題 No.1026 OGAWA's New Keyboard
ユーザー flippergoflippergo
提出日時 2020-12-24 16:14:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 149 ms / 1,000 ms
コード長 200 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 81,824 KB
実行使用メモリ 84,040 KB
最終ジャッジ日時 2023-10-21 15:43:14
合計ジャッジ時間 3,195 ms
ジャッジサーバーID
(参考情報)
judge12 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,412 KB
testcase_01 AC 41 ms
53,412 KB
testcase_02 AC 39 ms
53,412 KB
testcase_03 AC 37 ms
53,412 KB
testcase_04 AC 149 ms
78,276 KB
testcase_05 AC 61 ms
72,916 KB
testcase_06 AC 66 ms
73,932 KB
testcase_07 AC 129 ms
84,040 KB
testcase_08 AC 60 ms
70,868 KB
testcase_09 AC 36 ms
55,460 KB
testcase_10 AC 48 ms
63,064 KB
testcase_11 AC 42 ms
57,508 KB
testcase_12 AC 40 ms
55,460 KB
testcase_13 AC 36 ms
53,412 KB
testcase_14 AC 37 ms
55,460 KB
testcase_15 AC 37 ms
55,460 KB
testcase_16 AC 44 ms
57,508 KB
testcase_17 AC 92 ms
79,188 KB
testcase_18 AC 48 ms
63,064 KB
testcase_19 AC 92 ms
79,192 KB
testcase_20 AC 39 ms
55,460 KB
testcase_21 AC 38 ms
53,412 KB
testcase_22 AC 43 ms
55,460 KB
testcase_23 AC 49 ms
63,064 KB
testcase_24 AC 123 ms
81,620 KB
testcase_25 AC 60 ms
68,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
N = int(input())
que = deque([])
for _ in range(N):
    t,s = input().split()
    if t=="0":
        que.append(s)
    else:
        que.appendleft(s)
print("".join(que))
0