結果
問題 | No.610 区間賞(Section Award) |
ユーザー |
|
提出日時 | 2018-02-21 09:45:49 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 232 ms / 2,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 677 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 18,080 KB |
最終ジャッジ日時 | 2024-09-14 13:43:15 |
合計ジャッジ時間 | 6,211 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
#yuki610n=int(raw_input())a=map(int,raw_input().split())b=map(int,raw_input().split())m=[0 for i in xrange(n+1)]for i,x in enumerate(a):m[x]=ima=-1res=[]for y in b:if ma<=m[y]:ma=m[y]res.append(y)res.sort()for i in xrange(len(res)):print res[i]