随笔分类 - 【ONLINE_JUDGE_CODEFOCES】
1
摘要:bryce1010模板 http://codeforces.com/gym/101810#include using namespace std;#define ll long longconst int MAXN=1010;int a[MAXN>t; int ...
阅读全文
摘要:bryce1010模板 http://codeforces.com/gym/101810#includeusing namespace std;#define ll long longll a[1000005];int main(){ int t,n,temp;...
阅读全文
摘要:bryce1010模板 http://codeforces.com/gym/101810#includeusing namespace std;#define ll long long const ll maxn = 1e5 + 5;const ll mod = 1e...
阅读全文
摘要:bryce1010模板 http://codeforces.com/gym/101810#include using namespace std;#define ll long longint main(){ int t; scanf("%d",&t);...
阅读全文
摘要:bryce1010模板 http://codeforces.com/gym/101810#include using namespace std;#define ll long longll lowbit(ll x){ return x&(-x);}int m...
阅读全文
摘要:bryce1010模板 http://codeforces.com/gym/101810#include using namespace std;#define ll long longint main() { int T; cin >> T; wh...
阅读全文
摘要:bryce1010模板 http://codeforces.com/gym/101810/problem/A 大模拟,写崩了,代码借队友的。。。。。。注意处理段与段的连接问题:#includeusing namespace std;const int maxn=1e5...
阅读全文
摘要:Codeforces Round #497 (Div. 2)打的虚拟赛,感觉这场比赛出题人成功背锅,不仅给了N个Announcement,题意也比较难懂。打完后D过了一个,E题防AK了。像我这样的菜鸟也能半小时内A完前三个(当时第一名的大佬是10分钟解决了前3个)A....
阅读全文
摘要:Bryce1010模板http://codeforces.com/contest/1008/problems#include using namespace std;#define ll long longconst int MAXN=1e5+10;const int...
阅读全文
摘要:Bryce1010模板http://codeforces.com/contest/1008/problems#include using namespace std;#define ll long longconst int MAXN=1e5+10;const int...
阅读全文
摘要:Bryce1010模板http://codeforces.com/contest/1008/problems#include using namespace std;int main(){ sets; s.insert('a'); s.insert(...
阅读全文
摘要:Educational Codeforces Round 46 (Rated for Div. 2) http://codeforces.com/contest/1000 A. Codehorses T-shirtshttps://blog.csdn.net/Fire...
阅读全文
摘要:Bryce1010模板http://codeforces.com/contest/1000/problem/E题意: 给一个无向图,求图的最长直径。思路:对无向图缩点以后,求图的最长直径#include#define ll long long using namesp...
阅读全文
摘要:Bryce1010模板http://codeforces.com/problemset/problem/1000/D 题意: 要求一个序列有多少个子好序列。 思路:组合数+动态规划#includeusing namespace std;#define ll long ...
阅读全文
摘要:Bryce1010模板 http://codeforces.com/problemset/problem/1000/C题意:问你从[l,r]区间的被多少条线覆盖,列出所有答案。 思路:类似括号匹配的做法#include using namespace std;#def...
阅读全文
摘要:Bryce1010模板http://codeforces.com/problemset/problem/1000/B思路:先用两个数组sumon[]和sumoff[]将亮着的灯和灭的灯累计一下。 然后从左到右扫描插入一个开关,取得到的最大值。#includeusing...
阅读全文
摘要:Bryce1010模板http://codeforces.com/problemset/problem/1000/A 题意: 问你将一种类型的衣服转换成另一种的最小次数。#includeusing namespace std;#define ll long longl...
阅读全文
摘要:Educational Codeforces Round 44 (Rated for Div. 2)A. Chess Placing #include using namespace std;const int MAXN=205;int a[MAXN];int ma...
阅读全文
摘要:A. Wrong Subtraction#include using namespace std;int main(){ int n,k; cin>>n>>k; while(k--) { int tmp=n%10; ...
阅读全文
摘要:A. Primal Sporttime limit per test1.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice and Bob b...
阅读全文
1

浙公网安备 33010602011771号