NWU_ACM

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 4 5 6 7 8 9 10 下一页

2017年3月7日

摘要: 1 #include<iostream> 2 #include<algorithm> 3 #include<string.h> 4 #include<math.h> 5 #define ll long long 6 #define IO ios_base::sync_with_stdio(0);ci 阅读全文
posted @ 2017-03-07 20:03 NWU_ACM 阅读(96) 评论(0) 推荐(0) 编辑

摘要: #include #include using namespace std; int main() { int x,y,w,n; while(scanf("%d%d%d%d",&x,&y,&w,&n)!=-1) { if(n==1) { puts("0"); continue; ... 阅读全文
posted @ 2017-03-07 13:07 NWU_ACM 阅读(109) 评论(0) 推荐(0) 编辑

2017年3月6日

摘要: 1 #include<stdio.h> 2 int num[11]={0}; 3 int main() 4 { 5 long long int n,b; 6 int i,j,k,l,ans; 7 scanf("%lld",&n); 8 scanf("%d",&k); 9 b=n; 10 j=1; 1 阅读全文
posted @ 2017-03-06 19:23 NWU_ACM 阅读(136) 评论(0) 推荐(0) 编辑

2017年3月5日

摘要: 解题思路: 如果从i,j可以顺着某侧滑的话: 1 dp[i][j] = max{dp[i-1][j],dp[i][j-1],dp[i+1][j],dp[i][j+1]} + 1 那么我们可以写出以下递归: 1 int dp(int i,int j) 2 { 3 for(i,j上侧,下侧,左侧,右侧) 阅读全文
posted @ 2017-03-05 19:19 NWU_ACM 阅读(199) 评论(0) 推荐(0) 编辑

2017年3月3日

摘要: #include #include #include #include #include #include using namespace std; int ucol[1005],dcol[1005],lrow[1005],rrow[1005]; int numr[1005],numc[1005]; int a[1005][1005]; int main(){ int n,m; whil... 阅读全文
posted @ 2017-03-03 22:03 NWU_ACM 阅读(195) 评论(0) 推荐(0) 编辑

摘要: 1 #include <iostream> 2 #include <algorithm> 3 #include <cstring> 4 #include <cstdio> 5 #include <bitset> 6 #include <vector> 7 #include <queue> 8 #in 阅读全文
posted @ 2017-03-03 19:03 NWU_ACM 阅读(157) 评论(0) 推荐(0) 编辑

2017年3月2日

摘要: 1 #include <stdio.h> 2 #include <string.h> 3 #include <algorithm> 4 using namespace std; 5 6 inline int id(int u, int v) { return (u + v) | (u < v); } 阅读全文
posted @ 2017-03-02 17:58 NWU_ACM 阅读(108) 评论(0) 推荐(0) 编辑

2017年3月1日

摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <stack> 4 using namespace std; 5 stack<int> s; 6 int main() 7 { 8 int fsize, fdir, n; 9 // freope 阅读全文
posted @ 2017-03-01 18:30 NWU_ACM 阅读(101) 评论(0) 推荐(0) 编辑

2017年2月28日

摘要: 1 #include <iostream> 2 #include <algorithm> 3 #include <cstring> 4 #include <cstdio> 5 #include <bitset> 6 #include <vector> 7 #include <queue> 8 #in 阅读全文
posted @ 2017-02-28 18:42 NWU_ACM 阅读(160) 评论(0) 推荐(0) 编辑

2017年2月26日

摘要: C++版本: 1 #include <bits/stdc++.h> 2 #define _xx ios_base::sync_with_stdio(0);cin.tie(0); 3 using namespace std; 4 typedef long long ll; 5 ll a, b; 6 b 阅读全文
posted @ 2017-02-26 17:57 NWU_ACM 阅读(198) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 下一页