传送门
绝世傻DP
#include <cstdio> #include <iostream> #define N 51 int n, s, mx; bool f[N][1001]; inline int read() int main() } for(i = mx; i >= 0; i) if(f[n][i]) puts("1"); return 0; }
上一篇:[luoguP1136] 迎接仪式(DP)
下一篇:[luoguP1272] 重建道路
DP
传送门
绝世傻DP
#include <cstdio> #include <iostream> #define N 51 int n, s, mx; bool f[N][1001]; inline int read() int main() } for(i = mx; i >= 0; i) if(f[n][i]) puts("1"); return 0; }