NWU_ACM

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年3月27日

摘要: // stack #include #include char str[11000]; char stack1[11000]; int main() { int N; scanf("%d",&N); while(N--) { int i,j,top1; memset(str,0,sizeof(str)); me... 阅读全文
posted @ 2017-03-27 21:28 NWU_ACM 阅读(111) 评论(0) 推荐(0) 编辑

摘要: #include #include #include #include using namespace std; struct point { int x,id; char na[201]; bool operator que; for (i=1;i<=n;i++) { que.push(p... 阅读全文
posted @ 2017-03-27 13:09 NWU_ACM 阅读(121) 评论(0) 推荐(0) 编辑

2017年3月26日

摘要: 1 #include <cstdio> 2 #include <cstring> 3 #include <algorithm> 4 5 using namespace std; 6 7 const int MAXN = 50003; 8 9 int n, k, ans, d, x, y; 10 in 阅读全文
posted @ 2017-03-26 20:49 NWU_ACM 阅读(128) 评论(0) 推荐(0) 编辑

2017年3月24日

摘要: 1 #include<stdio.h> 2 long long int a[25][1005],sum[25][1005]; 3 long long int max(long long int x,long long int y) 4 { 5 if(x>y) return x; 6 else ret 阅读全文
posted @ 2017-03-24 19:05 NWU_ACM 阅读(102) 评论(0) 推荐(0) 编辑

2017年3月23日

摘要: 1 #include<cstdio> 2 #include<cstring> 3 #include<algorithm> 4 #define mod 100000000 5 using namespace std; 6 int dp[13][1<<12],cur[13]; 7 int can[1<< 阅读全文
posted @ 2017-03-23 18:03 NWU_ACM 阅读(80) 评论(0) 推荐(0) 编辑

2017年3月21日

摘要: 打表代码: 提交代码: 阅读全文
posted @ 2017-03-21 19:21 NWU_ACM 阅读(153) 评论(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-21 16:52 NWU_ACM 阅读(173) 评论(0) 推荐(0) 编辑

2017年3月20日

摘要: 1 #include <iostream> 2 using namespace std; 3 long long fastm(long long a, long long b, long long p) 4 { 5 long long ans = 1; 6 a = a%p; 7 while(b) 8 阅读全文
posted @ 2017-03-20 17:06 NWU_ACM 阅读(110) 评论(0) 推荐(0) 编辑

2017年3月18日

摘要: 1 #include <iostream> 2 using namespace std; 3 int main() 4 { 5 int T, n, i; 6 cin >> T; 7 int x[100]; 8 while (T--) 9 { 10 cin >> n; 11 for (i = 1; i 阅读全文
posted @ 2017-03-18 20:51 NWU_ACM 阅读(135) 评论(0) 推荐(0) 编辑

摘要: #include #include int dp[1005][1005]; char str1[1005],str2[1005]; int min(int a,int b,int c){ int min=a; if(min>b) min=b; if(min>c) min=c; return min; } int main() { int n,m; ... 阅读全文
posted @ 2017-03-18 16:05 NWU_ACM 阅读(148) 评论(0) 推荐(0) 编辑