From 464fe15f532e46d3430db20d4ddf2d591ffbd84d Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Sun, 18 Sep 2016 09:18:41 +0800 Subject: [PATCH] Create 5890_qq_21057881.cpp From http://blog.csdn.net/qq_21057881/article/details/52566960 --- HDOJ/5890_qq_21057881.cpp | 51 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 HDOJ/5890_qq_21057881.cpp 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]<