結果

問題 No.1026 OGAWA's New Keyboard
ユーザー splash9494
提出日時 2020-05-05 01:42:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 146 ms / 1,000 ms
コード長 257 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 82,520 KB
実行使用メモリ 123,864 KB
最終ジャッジ日時 2024-09-16 05:05:48
合計ジャッジ時間 2,691 ms
ジャッジサーバーID
(参考情報)
judge6 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N = int(input())
TSs =[input().split() for _ in range(N)]

f = []
r = []

for TS in TSs:
    if TS[0] == '0':
        r.append(TS[1])
    else:
        f.append(TS[1])
res = ''.join(reversed(f)) + ''.join(r)
print(res)
0