diff --git a/HDOJ/5890_qq_21057881.cpp b/HDOJ/5890_qq_21057881.cpp new file mode 100644 index 0000000..c1d3f6a --- /dev/null +++ b/HDOJ/5890_qq_21057881.cpp @@ -0,0 +1,51 @@ +#include +using namespace std; +#define ll long long +const int N=1e5+10,M=1e6+10,inf=1e9+10,mod=1e9+7; +const ll INF=1e18+10; +bitset<90>dp[11]; +int ans[60][60][60]; +int a[100],n,m; +int q[5]; +int check(int x,int y,int z) +{ + for(int i=0;i<=n;i++)dp[i].reset(); + dp[0][0]=1; + for(int i=1;i<=n;i++) + { + if(i!=x&&i!=y&&i!=z) + for(int t=10;t>=1;t--) + dp[t]|=dp[t-1]<