結果

問題 No.1026 OGAWA's New Keyboard
ユーザー 👑 rin204rin204
提出日時 2023-07-29 13:09:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 183 ms / 1,000 ms
コード長 183 bytes
コンパイル時間 534 ms
コンパイル使用メモリ 82,380 KB
実行使用メモリ 93,812 KB
最終ジャッジ日時 2024-04-16 19:13:07
合計ジャッジ時間 3,437 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,644 KB
testcase_01 AC 41 ms
53,492 KB
testcase_02 AC 38 ms
53,808 KB
testcase_03 AC 38 ms
53,036 KB
testcase_04 AC 183 ms
90,744 KB
testcase_05 AC 70 ms
74,216 KB
testcase_06 AC 77 ms
77,160 KB
testcase_07 AC 161 ms
93,812 KB
testcase_08 AC 68 ms
74,092 KB
testcase_09 AC 39 ms
53,372 KB
testcase_10 AC 53 ms
62,128 KB
testcase_11 AC 48 ms
61,384 KB
testcase_12 AC 39 ms
53,224 KB
testcase_13 AC 39 ms
53,096 KB
testcase_14 AC 38 ms
53,252 KB
testcase_15 AC 40 ms
53,940 KB
testcase_16 AC 49 ms
61,940 KB
testcase_17 AC 101 ms
80,916 KB
testcase_18 AC 51 ms
62,084 KB
testcase_19 AC 100 ms
80,836 KB
testcase_20 AC 39 ms
52,484 KB
testcase_21 AC 38 ms
52,452 KB
testcase_22 AC 47 ms
61,448 KB
testcase_23 AC 50 ms
62,664 KB
testcase_24 AC 140 ms
89,904 KB
testcase_25 AC 65 ms
69,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
S = []
T = []
for _ in range(n):
    s, t = input().split()
    if s == "0":
        T.append(t)
    else:
        S.append(t)

ans = S[::-1] + T
print(*ans, sep="")
0