結果

問題 No.1026 OGAWA's New Keyboard
ユーザー konchanksukonchanksu
提出日時 2020-04-20 15:49:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 274 bytes
コンパイル時間 363 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 11,860 KB
最終ジャッジ日時 2023-10-14 10:07:27
合計ジャッジ時間 4,801 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,820 KB
testcase_01 AC 15 ms
7,940 KB
testcase_02 AC 15 ms
7,956 KB
testcase_03 AC 15 ms
7,844 KB
testcase_04 TLE -
testcase_05 AC 27 ms
8,212 KB
testcase_06 AC 34 ms
8,364 KB
testcase_07 AC 647 ms
10,244 KB
testcase_08 AC 24 ms
8,160 KB
testcase_09 AC 15 ms
7,844 KB
testcase_10 AC 18 ms
7,816 KB
testcase_11 AC 17 ms
7,776 KB
testcase_12 AC 15 ms
7,996 KB
testcase_13 AC 15 ms
8,000 KB
testcase_14 AC 15 ms
7,804 KB
testcase_15 AC 15 ms
7,952 KB
testcase_16 AC 17 ms
7,820 KB
testcase_17 AC 154 ms
8,972 KB
testcase_18 AC 17 ms
7,940 KB
testcase_19 AC 137 ms
8,916 KB
testcase_20 AC 16 ms
7,780 KB
testcase_21 AC 15 ms
7,848 KB
testcase_22 AC 17 ms
7,828 KB
testcase_23 AC 17 ms
7,780 KB
testcase_24 AC 432 ms
9,868 KB
testcase_25 AC 18 ms
7,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s, t = [], []
for i in range(n):
    te, mp = input().split()
    s.append(te)
    t.append(mp)

ans = ''
for i in range(n - 1, -1, -1):
    if s[i] == '1':
        ans += t[i]
        
for i in range(n):
    if s[i] == '0':
        ans += t[i]

print(ans)
0