#23165: TLE issue solved


ericshwang77@gmail.com (Blue Sky Wang)

學校 : 不指定學校
編號 : 137167
來源 : [39.8.106.206]
最後登入時間 :
2021-09-21 13:38:25
a066. HNOI2002 营业额统计 -- HNOI2002 | From: [61.30.51.61] | 發表日期 : 2020-10-27 16:09

1.Sort the list.

2.Calculate the absolute value of [i]-[i-1] and [i]-[i+1].

3.choose the less one and add it into the summary.

 
ZeroJudge Forum