結果

問題 No.610 区間賞(Section Award)
ユーザー GrayCoderGrayCoder
提出日時 2017-12-11 20:30:46
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 363 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 82,184 KB
実行使用メモリ 79,604 KB
最終ジャッジ日時 2024-05-07 17:09:04
合計ジャッジ時間 5,102 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
60,168 KB
testcase_01 AC 34 ms
53,372 KB
testcase_02 AC 35 ms
52,768 KB
testcase_03 AC 35 ms
52,340 KB
testcase_04 AC 35 ms
52,488 KB
testcase_05 AC 36 ms
54,028 KB
testcase_06 AC 44 ms
59,364 KB
testcase_07 AC 36 ms
52,540 KB
testcase_08 AC 49 ms
59,096 KB
testcase_09 AC 36 ms
52,792 KB
testcase_10 AC 47 ms
59,232 KB
testcase_11 AC 46 ms
58,708 KB
testcase_12 AC 34 ms
52,072 KB
testcase_13 AC 48 ms
59,712 KB
testcase_14 AC 48 ms
59,964 KB
testcase_15 AC 43 ms
59,152 KB
testcase_16 AC 42 ms
59,584 KB
testcase_17 AC 42 ms
58,352 KB
testcase_18 AC 37 ms
52,340 KB
testcase_19 TLE -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    A = tuple(map(int, input().split()))
    B = tuple(map(int, input().split()))

    award = []
    apnd = award.append
    a = list(A)
    for i, j in enumerate(B):
        k = A.index(j)
        if i <= k and j in a:
            apnd(j)
            a[i:k] = [0] * (k - i)

    award.sort()
    print(*award, sep='\n')

main()
0