Life is like a box of chocolates, you never know what you're gonna get. 私の世界への近道です。
Case #1: 60
Yes, you are right, it should be 60.
The first case was:"100 50 wbqFRPHyoUqyBhZrOlGS GfU EZTb D Rc R BoZfX Nog f n"and according to your answer:Case #1: 30the first word "wbqFRPHyoUqyBhZrOlGS", will use:lenght("wbqFRPHyoUqyBhZrOlGS") = 2020 * 30 = 600" width - 600" > 100"My answer for case 1 is 5 by the wayManually check each case and probably you will see that your output is wrong.
I think we might have a different input file? From my input file, the first case is "900 60 hacker cup 2013", you can view it from: https://raw.github.com/TonnyXu/BillboardProblem-FacebookHackerCup2012/master/billboards.txt
my bad, they are different ;D srryMe:20100 50 wbqFRPHyoUqyBhZrOlGS GfU EZTb D Rc R BoZfX Nog f n(...)You:20900 60 hacker cup 2013(...)
Case #1: 60
ReplyDeleteYes, you are right, it should be 60.
DeleteThe first case was:
ReplyDelete"100 50 wbqFRPHyoUqyBhZrOlGS GfU EZTb D Rc R BoZfX Nog f n"
and according to your answer:
Case #1: 30
the first word "wbqFRPHyoUqyBhZrOlGS", will use:
lenght("wbqFRPHyoUqyBhZrOlGS") = 20
20 * 30 = 600" width - 600" > 100"
My answer for case 1 is 5 by the way
Manually check each case and probably you will see that your output is wrong.
I think we might have a different input file? From my input file, the first case is "900 60 hacker cup 2013", you can view it from: https://raw.github.com/TonnyXu/BillboardProblem-FacebookHackerCup2012/master/billboards.txt
Deletemy bad, they are different ;D srry
DeleteMe:
20
100 50 wbqFRPHyoUqyBhZrOlGS GfU EZTb D Rc R BoZfX Nog f n
(...)
You:
20
900 60 hacker cup 2013
(...)