70tps WAon2,3,5

P1048 [NOIP2005 普及组] 采药

@[MYJ2011](/user/659460) ```cpp for(i = 0;i<n;i++)cin>>w[i]>>c[i]; ``` 改成 ```cpp for(i = 1;i<=n;i++)cin>>w[i]>>c[i]; ```
by AfterFullStop @ 2022-10-07 16:59:23


@[LemonAndMelon](/user/555065) (来自一位蒟蒻) 好快,谢大佬,已AC(跪拜)
by SunsetVoice @ 2022-10-07 17:30:15


@[MYJ2011](/user/659460) 另,建议把数组放外面,不然大了RE(这题没事)
by AfterFullStop @ 2022-10-07 17:33:54


@[LemonAndMelon](/user/555065) OK,不过我的题风就是没事就别动它(滑稽)xie
by SunsetVoice @ 2022-10-10 15:13:13


|