結果

問題 No.1026 OGAWA's New Keyboard
ユーザー miya145592miya145592
提出日時 2023-05-19 00:51:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 259 ms / 1,000 ms
コード長 210 bytes
コンパイル時間 932 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 107,180 KB
最終ジャッジ日時 2023-08-22 14:24:40
合計ジャッジ時間 5,496 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
71,820 KB
testcase_01 AC 93 ms
71,756 KB
testcase_02 AC 93 ms
71,892 KB
testcase_03 AC 93 ms
71,672 KB
testcase_04 AC 259 ms
107,180 KB
testcase_05 AC 117 ms
77,956 KB
testcase_06 AC 118 ms
77,720 KB
testcase_07 AC 206 ms
101,576 KB
testcase_08 AC 119 ms
77,920 KB
testcase_09 AC 92 ms
71,740 KB
testcase_10 AC 104 ms
76,228 KB
testcase_11 AC 100 ms
72,148 KB
testcase_12 AC 92 ms
71,804 KB
testcase_13 AC 90 ms
71,744 KB
testcase_14 AC 90 ms
71,640 KB
testcase_15 AC 91 ms
71,420 KB
testcase_16 AC 99 ms
72,176 KB
testcase_17 AC 145 ms
82,616 KB
testcase_18 AC 103 ms
76,276 KB
testcase_19 AC 142 ms
82,464 KB
testcase_20 AC 90 ms
71,708 KB
testcase_21 AC 90 ms
71,856 KB
testcase_22 AC 97 ms
72,276 KB
testcase_23 AC 102 ms
76,336 KB
testcase_24 AC 179 ms
94,376 KB
testcase_25 AC 113 ms
77,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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