這個演算法確定是對的了
不過是要把'最晚出現'的那一片踢掉
※ 引述《CorruptAngel (微笑面具)》之銘言:
: We did so too:(
: but we still wrote a greedy search and got WA.
: ※ 引述《denehs (DE)》之銘言:
: : I create a 1-D array to record when is the next time the DVD will be
: : requested,and if it won't appear again,give it a value 110 (because the
: : max length is 100),and got WA....><..
: : We though that greedy was an incorrect algorithm,so didn't debug.......
: : (chinese typing crashed...XD)
--
手寫的出妳的名字,但卻漸漸忘記妳的樣子,
就算妳不曾唸過我的名字,但我也仍喜歡妳。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.136.198.66