上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页
摘要: #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 阅读(185) 评论(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 阅读(213) 评论(0) 推荐(0) 编辑
摘要: A. D. 阅读全文
posted @ 2019-04-16 11:49 LightAc 阅读(133) 评论(0) 推荐(0) 编辑
摘要: A. B. D 阅读全文
posted @ 2019-04-12 23:38 LightAc 阅读(114) 评论(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 阅读(155) 评论(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 阅读(248) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/fzl194/p/9095177.html 阅读全文
posted @ 2019-04-06 18:26 LightAc 阅读(151) 评论(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 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 题意: 第一行输入代表下面输入的测试数对的个数 接下来的每个数对中 两个数中可以任意选择一个作为判断数字 选完n个之后 这些数对的最小公因数即为答案 换言之第一组选18 15 12得3,也可以选18 24 12得6或3或2 输出一个答案即可。 阅读全文
posted @ 2019-04-04 20:16 LightAc 阅读(215) 评论(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 阅读(338) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页
返回顶端