NWU_ACM

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

2017年4月6日

摘要: 1 #include <iostream> 2 #include <cstring> 3 #include <algorithm> 4 #include <cmath> 5 #include <cstdio> 6 #define _xx ios_base::sync_with_stdio(0);ci 阅读全文
posted @ 2017-04-06 20:12 NWU_ACM 阅读(206) 评论(0) 推荐(0) 编辑

摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 int M, N; 6 while (cin >> M >> N) { 7 if (M <= N) { 8 for (int i = M ; i <= N; i+ 阅读全文
posted @ 2017-04-06 19:24 NWU_ACM 阅读(62) 评论(0) 推荐(0) 编辑

2017年4月4日

摘要: 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 int main() 6 { 7 in 阅读全文
posted @ 2017-04-04 11:48 NWU_ACM 阅读(128) 评论(0) 推荐(0) 编辑

2017年4月3日

摘要: #include using namespace std; const int maxn=500011; const int inf=1 #define pb push_back #define cl(a,b) memset(a,b,sizeof(a)); int a[maxn]; int main(){ int n; while(~scanf("%d",&n)){ ... 阅读全文
posted @ 2017-04-03 15:51 NWU_ACM 阅读(174) 评论(0) 推荐(0) 编辑

2017年4月2日

摘要: 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 dp[505][505] = { 阅读全文
posted @ 2017-04-02 20:24 NWU_ACM 阅读(121) 评论(0) 推荐(0) 编辑

摘要: 1 #include<stdio.h> 2 int map[100005],aggregate[100005]; 3 int father(int x) 4 { 5 while(x!=aggregate[x]) 6 { 7 x=father(aggregate[x]); 8 } 9 return x 阅读全文
posted @ 2017-04-02 19:22 NWU_ACM 阅读(76) 评论(0) 推荐(0) 编辑

2017年4月1日

摘要: 1 //回文判断 Codeforces Round #286 (Div. 2) 2 #include<iostream> 3 #include<cstdio> 4 int main() 5 { 6 string f,temp; cin>>f; 7 int len(f.size()); 8 for(c 阅读全文
posted @ 2017-04-01 16:11 NWU_ACM 阅读(121) 评论(0) 推荐(0) 编辑

2017年3月31日

摘要: 1 #include <bits/stdc++.h> 2 #define rep(i,a,b) for(int i = a;i <= b;++ i) 3 #define per(i,a,b) for(int i = a;i >= b;-- i) 4 #define mem(a,b) memset(( 阅读全文
posted @ 2017-03-31 21:13 NWU_ACM 阅读(381) 评论(0) 推荐(0) 编辑

2017年3月30日

摘要: 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 ll dp[35] = {1, 1}; 5 int main() 6 { 7 int T; 8 for(int i = 2; i <= 30; i++ 阅读全文
posted @ 2017-03-30 19:13 NWU_ACM 阅读(135) 评论(0) 推荐(0) 编辑

2017年3月29日

摘要: 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 const ll p = 100000 阅读全文
posted @ 2017-03-29 17:30 NWU_ACM 阅读(648) 评论(0) 推荐(0) 编辑