結果

問題 No.1026 OGAWA's New Keyboard
ユーザー tamatotamato
提出日時 2020-04-14 16:45:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 169 ms / 1,000 ms
コード長 365 bytes
コンパイル時間 767 ms
コンパイル使用メモリ 87,724 KB
実行使用メモリ 89,588 KB
最終ジャッジ日時 2023-10-14 10:02:53
合計ジャッジ時間 4,642 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
72,104 KB
testcase_01 AC 91 ms
71,876 KB
testcase_02 AC 92 ms
72,268 KB
testcase_03 AC 90 ms
71,956 KB
testcase_04 AC 169 ms
89,588 KB
testcase_05 AC 101 ms
77,752 KB
testcase_06 AC 101 ms
77,752 KB
testcase_07 AC 138 ms
85,092 KB
testcase_08 AC 101 ms
77,876 KB
testcase_09 AC 90 ms
72,196 KB
testcase_10 AC 91 ms
72,084 KB
testcase_11 AC 93 ms
72,164 KB
testcase_12 AC 93 ms
72,084 KB
testcase_13 AC 92 ms
72,056 KB
testcase_14 AC 92 ms
72,084 KB
testcase_15 AC 92 ms
71,872 KB
testcase_16 AC 95 ms
72,080 KB
testcase_17 AC 119 ms
80,944 KB
testcase_18 AC 91 ms
72,104 KB
testcase_19 AC 111 ms
77,844 KB
testcase_20 AC 91 ms
72,252 KB
testcase_21 AC 91 ms
72,164 KB
testcase_22 AC 92 ms
72,088 KB
testcase_23 AC 92 ms
72,276 KB
testcase_24 AC 135 ms
85,216 KB
testcase_25 AC 99 ms
77,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    from collections import deque
    input = sys.stdin.readline

    A = deque()
    N = int(input())
    for _ in range(N):
        t, s = input().split()
        if t == "0":
            A.append(s)
        else:
            A.appendleft(s)
    print("".join(A))


if __name__ == '__main__':
    main()
0