結果

問題 No.1026 OGAWA's New Keyboard
ユーザー dangodango
提出日時 2023-06-24 18:04:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 186 ms / 1,000 ms
コード長 191 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 87,020 KB
実行使用メモリ 86,036 KB
最終ジャッジ日時 2023-09-14 13:39:22
合計ジャッジ時間 4,870 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,360 KB
testcase_01 AC 71 ms
71,388 KB
testcase_02 AC 71 ms
71,376 KB
testcase_03 AC 72 ms
71,356 KB
testcase_04 AC 186 ms
86,036 KB
testcase_05 AC 97 ms
76,900 KB
testcase_06 AC 100 ms
77,480 KB
testcase_07 AC 163 ms
85,932 KB
testcase_08 AC 96 ms
76,864 KB
testcase_09 AC 71 ms
71,292 KB
testcase_10 AC 84 ms
75,544 KB
testcase_11 AC 78 ms
71,244 KB
testcase_12 AC 73 ms
71,464 KB
testcase_13 AC 71 ms
71,272 KB
testcase_14 AC 72 ms
71,188 KB
testcase_15 AC 71 ms
71,044 KB
testcase_16 AC 79 ms
71,292 KB
testcase_17 AC 124 ms
80,504 KB
testcase_18 AC 82 ms
75,496 KB
testcase_19 AC 119 ms
80,036 KB
testcase_20 AC 73 ms
71,336 KB
testcase_21 AC 73 ms
71,464 KB
testcase_22 AC 77 ms
71,260 KB
testcase_23 AC 81 ms
75,448 KB
testcase_24 AC 150 ms
84,044 KB
testcase_25 AC 92 ms
76,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
a = []
b = []
for _ in range(N):
    t, s = map(str, input().split())
    if t == '0':
        a.append(s)
    else:
        b.append(s)
print(''.join(list(reversed(b)) + a))
0