結果

問題 No.1026 OGAWA's New Keyboard
ユーザー vwxyzvwxyz
提出日時 2022-09-07 00:43:10
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 263 ms / 1,000 ms
コード長 274 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 16,972 KB
最終ジャッジ日時 2024-11-22 00:51:08
合計ジャッジ時間 2,896 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
readline=sys.stdin.readline
write=sys.stdout.write
from math import gcd as GCD
import math

N=int(readline())
L,R=[],[]
for _ in range(N):
    T,S=readline().split()
    T=int(T)
    if T:
        L.append(S)
    else:
        R.append(S)
print(*L[::-1]+R,sep="")
0