結果

問題 No.1026 OGAWA's New Keyboard
ユーザー convexineqconvexineq
提出日時 2020-04-17 23:33:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 392 ms / 1,000 ms
コード長 195 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 11,776 KB
最終ジャッジ日時 2023-10-14 10:06:14
合計ジャッジ時間 2,550 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,488 KB
testcase_01 AC 17 ms
8,592 KB
testcase_02 AC 18 ms
8,412 KB
testcase_03 AC 18 ms
8,556 KB
testcase_04 AC 392 ms
11,776 KB
testcase_05 AC 27 ms
8,452 KB
testcase_06 AC 32 ms
8,532 KB
testcase_07 AC 240 ms
10,296 KB
testcase_08 AC 25 ms
8,432 KB
testcase_09 AC 18 ms
8,600 KB
testcase_10 AC 20 ms
8,480 KB
testcase_11 AC 19 ms
8,448 KB
testcase_12 AC 18 ms
8,512 KB
testcase_13 AC 17 ms
8,460 KB
testcase_14 AC 18 ms
8,584 KB
testcase_15 AC 17 ms
8,512 KB
testcase_16 AC 19 ms
8,476 KB
testcase_17 AC 109 ms
8,968 KB
testcase_18 AC 20 ms
8,488 KB
testcase_19 AC 99 ms
8,956 KB
testcase_20 AC 18 ms
8,412 KB
testcase_21 AC 17 ms
8,440 KB
testcase_22 AC 18 ms
8,596 KB
testcase_23 AC 19 ms
8,564 KB
testcase_24 AC 199 ms
10,120 KB
testcase_25 AC 20 ms
8,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

from collections import deque
q = deque()

for _ in range(n):
    t,s = input().split()
    if t == "0":
        q.append(s)
    else:
        q.appendleft(s)

print("".join(q))
0