同TLE 然后……
```cpp
#include<cstdio>
int main()
{
int x;
scanf("%d",&x);
printf("%d\n",x);
}
```
by VenusM1nT @ 2018-10-25 13:44:52
每次做完背包如果装满了就退出
by King_of_gamers @ 2018-10-25 13:46:29
开氧气。。把$cin$换成$scanf$,亲测$AC$
by tiandong123 @ 2018-10-25 13:53:21
```cpp
if(dp[j]==c)
{
printf("%d",c);
return 0;
}
```
by 曹老师 @ 2018-10-25 13:54:04
@[Venus](/space/show?uid=23243) 虽然是背包模板,但是之前在刷题库时背包模板直接复制,结果发现变量名错误居然没有报错,然后就发现这个奇怪的数据
by goodlearndaydayup @ 2018-10-25 14:08:48
@[Venus](/space/show?uid=23243)
呃呃呃。。。
这都可以吗
by 彼岸朱砂 @ 2018-10-25 16:54:24
@[曹老师](/space/show?uid=37427)
谢谢大佬
by 彼岸朱砂 @ 2018-10-25 16:54:58
@[炜哥](/space/show?uid=28810) [炜哥](/space/show?uid=28810)天秀!一下飞了!
by 诺玛——EVE @ 2018-11-02 20:36:04
@[诺玛——EVE](/space/show?uid=150571) ...
by King_of_gamers @ 2018-11-03 07:04:06