04 2019 档案

摘要:#include using namespace std; typedef long long ll; int n,tot; ll p[200],f[2000],ans; int main(){ scanf("%d",&n); for (int i=2;i=p[i];--j) for(int k=p[i];k<=j;k*=p[i]) f[j]+=f[... 阅读全文
posted @ 2019-04-22 13:36 LightAc 阅读(120) 评论(0) 推荐(0) 编辑
摘要:#include using namespace std; int dp[1005],f[1005]; int main(){ ios::sync_with_sidio(false); int t; cin >>t; while(t--){ memset(dp,0,sizeof(dp)); int n,m; ... 阅读全文
posted @ 2019-04-21 22:34 LightAc 阅读(267) 评论(0) 推荐(0) 编辑
摘要:#include using namespace std; const int MAXN = 33000; long long dp[MAXN] = {0}; int main () { dp[0] = 1; for (int i = 1; i <= 3; i++) { for (int j = i; j < MAXN; j++) { ... 阅读全文
posted @ 2019-04-21 22:21 LightAc 阅读(195) 评论(0) 推荐(0) 编辑
摘要:#include using namespace std; typedef long long ll; const ll mod=10007; ll fac[1050]; ll q_pow(ll a,ll b) { ll ans=1; while(b) { if(b&1) ans=(ans*a)%mod; a=(a... 阅读全文
posted @ 2019-04-21 21:57 LightAc 阅读(186) 评论(0) 推荐(0) 编辑
摘要:Sample Input 8 13 0 1 1 6 6 5 5 0 0 6 1 2 2 3 3 4 4 5 7 1 7 2 7 6 3 6 5 1 6 3 5 Sample Output 1 1 1 2 3 3 阅读全文
posted @ 2019-04-17 09:01 LightAc 阅读(223) 评论(0) 推荐(0) 编辑
摘要:A. D. 阅读全文
posted @ 2019-04-16 11:49 LightAc 阅读(137) 评论(0) 推荐(0) 编辑
摘要:A. B. D 阅读全文
posted @ 2019-04-12 23:38 LightAc 阅读(121) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<iomanip> #include<cstdio> #include<algorithm> #include<cstring> #include<cmath> #include<queue> #include<stack> #include<v 阅读全文
posted @ 2019-04-10 14:49 LightAc 阅读(159) 评论(0) 推荐(0) 编辑
摘要:#include <bits/stdc++.h> using namespace std; struct Point { int x; int y; }; void displayMenu() { for (int i = 0; i < 32; ++i) cout << "*"; cout << e 阅读全文
posted @ 2019-04-10 10:36 LightAc 阅读(249) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/fzl194/p/9095177.html 阅读全文
posted @ 2019-04-06 18:26 LightAc 阅读(152) 评论(0) 推荐(0) 编辑
摘要:#include #include #include #include #include #include #include #include #include #include #include #include #include #define ll long long #define ull unsigned long long using namespace std; const in... 阅读全文
posted @ 2019-04-06 17:47 LightAc 阅读(129) 评论(0) 推荐(0) 编辑
摘要:题意: 第一行输入代表下面输入的测试数对的个数 接下来的每个数对中 两个数中可以任意选择一个作为判断数字 选完n个之后 这些数对的最小公因数即为答案 换言之第一组选18 15 12得3,也可以选18 24 12得6或3或2 输出一个答案即可。 阅读全文
posted @ 2019-04-04 20:16 LightAc 阅读(217) 评论(0) 推荐(0) 编辑
摘要:#include using namespace std; class Date { public: Date(int year = 1990, int month = 1, int day = 1) { setDate(year, month, day); } void setDate(int _year, int _month, int _d... 阅读全文
posted @ 2019-04-03 14:10 LightAc 阅读(341) 评论(0) 推荐(0) 编辑

返回顶端
点击右上角即可分享
微信分享提示