結果

問題 No.318 学学学学学
ユーザー pluto77pluto77
提出日時 2018-02-07 11:55:03
言語 PyPy2
(7.3.15)
結果
TLE  
実行時間 -
コード長 333 bytes
コンパイル時間 1,018 ms
コンパイル使用メモリ 76,464 KB
実行使用メモリ 126,016 KB
最終ジャッジ日時 2023-10-12 14:35:39
合計ジャッジ時間 7,333 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
83,436 KB
testcase_01 AC 113 ms
81,364 KB
testcase_02 AC 119 ms
82,564 KB
testcase_03 AC 110 ms
80,424 KB
testcase_04 AC 118 ms
82,188 KB
testcase_05 AC 312 ms
126,016 KB
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki318

n=int(raw_input())
a=map(int,raw_input().split())
r={}
for i,a in enumerate(a):
 if a in r:
  r[a][1]=i
 else:
  r[a]=[i,i]
r=sorted(r.items(),key=lambda x:-x[0])
res=[0]*n
for i in xrange(len(r)):
 for j in xrange(r[i][1][0],r[i][1][1]+1):
  if res[j]==0:
   res[j]=r[i][0]
for i in xrange(len(res)):
 print res[i],
print
0