結果
問題 | No.610 区間賞(Section Award) |
ユーザー | GrayCoder |
提出日時 | 2017-12-11 13:00:35 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 423 bytes |
コンパイル時間 | 271 ms |
コンパイル使用メモリ | 87,088 KB |
実行使用メモリ | 84,212 KB |
最終ジャッジ日時 | 2023-08-20 10:06:11 |
合計ジャッジ時間 | 6,191 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 81 ms
75,476 KB |
testcase_01 | AC | 78 ms
71,536 KB |
testcase_02 | AC | 75 ms
71,316 KB |
testcase_03 | AC | 77 ms
71,228 KB |
testcase_04 | AC | 76 ms
71,112 KB |
testcase_05 | AC | 75 ms
71,352 KB |
testcase_06 | AC | 84 ms
75,680 KB |
testcase_07 | AC | 75 ms
71,204 KB |
testcase_08 | AC | 92 ms
75,464 KB |
testcase_09 | AC | 78 ms
71,036 KB |
testcase_10 | AC | 89 ms
75,588 KB |
testcase_11 | AC | 86 ms
75,556 KB |
testcase_12 | AC | 75 ms
71,512 KB |
testcase_13 | AC | 90 ms
75,440 KB |
testcase_14 | AC | 89 ms
75,528 KB |
testcase_15 | AC | 87 ms
75,536 KB |
testcase_16 | AC | 83 ms
75,616 KB |
testcase_17 | AC | 83 ms
75,620 KB |
testcase_18 | AC | 78 ms
71,312 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 | -- | - |
ソースコード
def main(): N = int(input()) A = tuple(map(int, input().split())) B = tuple(map(int, input().split())) a = list(A) award = [] apnd = award.append if N == 1: print(B[0]) return for i, j in enumerate(B): idx = A.index(j) if i <= idx and j in a: apnd(j) a[i:idx] = [-1] * (idx - i) for i in sorted(award): print(i) main()