NWU_ACM

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

2017年6月2日

摘要: #include #define MOD 9937 __int64 a[4][4]= { 1,1,0,1, 1,1,1,0, 0,1,1,1, 1,0,1,1 }; __int64 dp[105][5][5]; int main() { __int64 k,l,i,j,n,ans; for (k=1;k<102;k++) { ... 阅读全文
posted @ 2017-06-02 17:24 NWU_ACM 阅读(129) 评论(0) 推荐(0) 编辑

2017年5月31日

摘要: #include long long int n,m; long long int a[10][10]={0},t[12]={0,1,10,100,1000,10000,100000,1000000,10000000,100000000,1000000000,10000000000};//a[i][j]表示开头是j的i位数 void dp() { int i,j,k,l; for... 阅读全文
posted @ 2017-05-31 19:03 NWU_ACM 阅读(86) 评论(0) 推荐(0) 编辑

2017年5月30日

摘要: 1 #include<cstdio> 2 #include<cstring> 3 #include<iostream> 4 #include<string> 5 #include<vector> 6 #include<queue> 7 #include<stack> 8 #include<set> 阅读全文
posted @ 2017-05-30 23:44 NWU_ACM 阅读(76) 评论(0) 推荐(0) 编辑

2017年5月28日

摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 struct Node { 5 int next[10]; 6 int num; 7 } node[100005]; 8 int len = 0; 阅读全文
posted @ 2017-05-28 21:33 NWU_ACM 阅读(110) 评论(0) 推荐(0) 编辑

2017年5月27日

摘要: 1 #include <bits/stdc++.h> 2 #define _xx ios_base::sync_with_stdio(0);cin.tie(0); 3 typedef long long ll; 4 using namespace std; 5 typedef long long l 阅读全文
posted @ 2017-05-27 22:56 NWU_ACM 阅读(145) 评论(0) 推荐(0) 编辑

2017年5月25日

摘要: #include const int INF = 0x3f3f3f3f; const int Maxn = 100005; #define ll long long #define mem(x,y) memset(x,y,sizeof(x)) using namespace std; int x[Maxn], num; int deal(ll N) { // 对N分解质因数 ... 阅读全文
posted @ 2017-05-25 22:57 NWU_ACM 阅读(104) 评论(0) 推荐(0) 编辑

2017年5月24日

摘要: #include #include using namespace std; int gcd(int a,int b) { return b?gcd(b,a%b):a; } int main() { int a,b,c; while(scanf("%d%d%d",&a,&b,&c),a+b+c) { a/=gcd(b,c); if(... 阅读全文
posted @ 2017-05-24 23:00 NWU_ACM 阅读(82) 评论(0) 推荐(0) 编辑

2017年5月22日

摘要: #include <bits/stdc++.h> #define _xx ios_base::sync_with_stdio(0);cin.tie(0); using namespace std; typedef long long ll; int main() { ll n; cin >> n; 阅读全文
posted @ 2017-05-22 20:29 NWU_ACM 阅读(129) 评论(0) 推荐(0) 编辑

2017年5月21日

摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 #define rep(i,a,b) for(int i = a;i <= b;++ i) 4 #define per(i,a,b) for(int i = a;i >= b;-- i) 5 #d 阅读全文
posted @ 2017-05-21 20:43 NWU_ACM 阅读(108) 评论(0) 推荐(0) 编辑

2017年5月18日

摘要: #include #define _xx ios_base::sync_with_stdio(0);cin.tie(0); using namespace std; struct Node { int value, id; } a[10005]; bool cmp(const Node& t1, const Node& t2) { return t1.value > n >>... 阅读全文
posted @ 2017-05-18 20:35 NWU_ACM 阅读(111) 评论(0) 推荐(0) 编辑