From cda10c54f5bff5e95903e086f29e7f7727409362 Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Wed, 25 May 2016 13:11:23 +0800 Subject: [PATCH] Create 1002_HBat.cpp From https://vijos.org/p/1002/solution --- VIJOS/1002_HBat.cpp | 78 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 VIJOS/1002_HBat.cpp diff --git a/VIJOS/1002_HBat.cpp b/VIJOS/1002_HBat.cpp new file mode 100644 index 0000000..5737ead --- /dev/null +++ b/VIJOS/1002_HBat.cpp @@ -0,0 +1,78 @@ +#include +#include +#include + +using namespace std; + +int stone[1000001],map[1000001],f[1000001]; + +//int ans; +int w=2000; +int l,s,t,m; +int p=0,k;/* +inline void findd(int a) +{ + if(ans>w)return; + if(a>=p) + { + if(ans=0&&f[j]=0&&j<=i-s;++j) //把j>=0放在循环头,有时候可能导致循环不进行(开始的时候) + { + if(f[j]