前排提醒:本题时限和内存限制均有误,时限应为2s

P1758 [NOI2009] 管道取珠

@[apt123](/space/show?uid=14769) 什么叫 “特判”?加个滚动数组再加个忽略 f[i][j][k]=0 的情况的优化就能通过了。
by rushcheyo @ 2016-12-11 11:46:34


@ rushcheyo 就是交了,发现最后一个点T,然后把数据下下来,然后特判输出答案 先写到90,然后看我代码就行了
by apt123 @ 2016-12-11 17:51:37


@[apt123](/space/show?uid=14769) 这不是疑问句,你显然没有看我后半句话。 至于为什么三个月后再回你,我也不知道(误。
by rushcheyo @ 2017-02-01 22:59:21


另外前几名的做法真是炫酷: ```cpp #include<iostream> using namespace std; int n,m,ans=1,i; int main() { cin>>n>>m; for(i=2;i<=n;i++) ans=(ans+m)%(i)+1; cout<<ans<<endl; } ```
by rushcheyo @ 2017-02-01 23:00:41


@[rushcheyo](/space/show?uid=9643) 这能过????
by wjy666 @ 2017-09-09 16:05:28


这题过不过看时机,有时过有时不过
by feng_chengjie @ 2018-04-05 21:59:48


作死实测不可过
by mahao2002 @ 2018-10-02 22:31:23


|