結果

問題 No.610 区間賞(Section Award)
ユーザー roarisroaris
提出日時 2019-12-17 23:41:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 1,324 ms
コンパイル使用メモリ 86,752 KB
実行使用メモリ 104,140 KB
最終ジャッジ日時 2023-09-18 07:40:16
合計ジャッジ時間 6,974 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,104 KB
testcase_01 AC 68 ms
71,076 KB
testcase_02 AC 69 ms
71,128 KB
testcase_03 AC 70 ms
71,064 KB
testcase_04 AC 72 ms
70,944 KB
testcase_05 AC 71 ms
70,996 KB
testcase_06 AC 73 ms
75,652 KB
testcase_07 AC 70 ms
71,000 KB
testcase_08 AC 72 ms
75,404 KB
testcase_09 AC 69 ms
71,188 KB
testcase_10 AC 74 ms
75,528 KB
testcase_11 AC 72 ms
75,440 KB
testcase_12 AC 69 ms
71,076 KB
testcase_13 AC 73 ms
75,480 KB
testcase_14 AC 73 ms
75,152 KB
testcase_15 AC 72 ms
75,528 KB
testcase_16 AC 72 ms
75,432 KB
testcase_17 AC 73 ms
75,528 KB
testcase_18 AC 69 ms
71,068 KB
testcase_19 AC 83 ms
78,260 KB
testcase_20 AC 116 ms
100,168 KB
testcase_21 AC 83 ms
75,784 KB
testcase_22 AC 100 ms
94,376 KB
testcase_23 AC 79 ms
76,316 KB
testcase_24 AC 83 ms
79,112 KB
testcase_25 AC 77 ms
75,964 KB
testcase_26 AC 92 ms
85,772 KB
testcase_27 AC 114 ms
100,264 KB
testcase_28 AC 115 ms
100,996 KB
testcase_29 AC 94 ms
91,880 KB
testcase_30 AC 105 ms
97,876 KB
testcase_31 AC 90 ms
85,720 KB
testcase_32 AC 112 ms
101,156 KB
testcase_33 AC 78 ms
76,252 KB
testcase_34 AC 115 ms
103,856 KB
testcase_35 AC 97 ms
87,472 KB
testcase_36 AC 114 ms
103,924 KB
testcase_37 AC 105 ms
97,664 KB
testcase_38 AC 81 ms
77,988 KB
testcase_39 AC 113 ms
100,528 KB
testcase_40 AC 113 ms
100,292 KB
testcase_41 AC 112 ms
100,448 KB
testcase_42 AC 112 ms
100,572 KB
testcase_43 AC 112 ms
100,488 KB
testcase_44 AC 122 ms
97,732 KB
testcase_45 AC 123 ms
104,140 KB
testcase_46 AC 121 ms
100,452 KB
testcase_47 AC 108 ms
100,756 KB
testcase_48 AC 100 ms
97,460 KB
testcase_49 AC 107 ms
101,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
ans = [True]*(1+N)
j = 0

for i in range(N):
    if not ans[B[i]]:
        continue
    
    while A[j]!=B[i]:
        ans[A[j]] = False
        j += 1
    
    j += 1
    
for i in range(1, N+1):
    if ans[i]:
        print(i)
0