結果
| 問題 |
No.610 区間賞(Section Award)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-11 20:30:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 363 bytes |
| コンパイル時間 | 362 ms |
| コンパイル使用メモリ | 82,500 KB |
| 実行使用メモリ | 171,800 KB |
| 最終ジャッジ日時 | 2024-11-30 11:43:36 |
| 合計ジャッジ時間 | 89,843 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 TLE * 29 |
ソースコード
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()