关于石子归并的循环...

P1880 [NOI1995] 石子合并

@[nothingness](/space/show?uid=31317) ``` for(int i=n*2-1;i>=1;i++) ``` 这句不对吧。。。
by nianheng @ 2018-05-29 10:42:31


@[nothingness](/space/show?uid=31317) DP的话当然可以正着扫,只要保证你在DP这个状态之前用作转移条件的那些状态已经算出来就行了
by nianheng @ 2018-05-29 10:44:42


|