diff --git a/SDUSTOJ/1795_cnblogs.cpp b/SDUSTOJ/1795_cnblogs.cpp new file mode 100644 index 0000000..dd17618 --- /dev/null +++ b/SDUSTOJ/1795_cnblogs.cpp @@ -0,0 +1,53 @@ +/* *********************************************** +Author :devil +Created Time :2016/4/26 16:10:39 +************************************************ */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +using namespace std; +typedef long long LL; +const int N=2e6+7; +int a[N],b[N]; +long long sum[N]; +int main() +{ + //freopen("in.txt","r",stdin); + int n,x; + while(~scanf("%d",&n)) + { + int ma=0; + memset(a,0,sizeof(a)); + memset(b,0,sizeof(b)); + memset(sum,0,sizeof(sum)); + for(int i=0;i