会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
DeaL0124
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
26
下一页
2020年8月2日
SPOJ PT07Z, Longest path in a tree 树的直径
摘要: SPOJ PT07Z, Longest path in a tree #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #inclu
阅读全文
posted @ 2020-08-02 08:57 DeaL57
阅读(171)
评论(0)
推荐(0)
2020年8月1日
Dividing
摘要: 题目 通过题目条件,可以发现:一旦通过(n,k)->(nk,k)的操作来推出新的元组, n必定是k的倍数;而如果没有, 那么肯定是(xk+1,k)的形式。所以,推出第一条结论:只有在满足n=1,n是k的倍数,或者n-1是k的倍数时,(n,k)是传奇元组。 因此,我们可以认为(n,k)是传奇元组,当且
阅读全文
posted @ 2020-08-01 23:30 DeaL57
阅读(165)
评论(0)
推荐(0)
2020年7月31日
C. Uncle Bogdan and Country Happiness
摘要: C. Uncle Bogdan and Country Happiness #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #in
阅读全文
posted @ 2020-07-31 22:22 DeaL57
阅读(295)
评论(0)
推荐(0)
B. Array Walk
摘要: B. Array Walk #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> #include <ss
阅读全文
posted @ 2020-07-31 10:28 DeaL57
阅读(199)
评论(0)
推荐(0)
2020年7月28日
KMP next数组
摘要: void getnxt(char *s,int *next) { int k=-1; int j=0; pext[j]=-1; while(j<len) { if(k 1 || s[j]==s[k]) { k++; j++; pext[j]=k; } else { k=pext[k]; } } }
阅读全文
posted @ 2020-07-28 08:26 DeaL57
阅读(113)
评论(0)
推荐(0)
2020年7月27日
A2. Prefix Flip (Hard Version)
摘要: A2. Prefix Flip (Hard Version) #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <
阅读全文
posted @ 2020-07-27 23:52 DeaL57
阅读(195)
评论(0)
推荐(0)
k-Tree DP计数
摘要: k-Tree 对dp数情况的问题还是不太懂 #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> #inc
阅读全文
posted @ 2020-07-27 00:22 DeaL57
阅读(100)
评论(0)
推荐(0)
2020年7月25日
LIS Drop Voicing 最长升序
摘要: Drop Voicing #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> #include <sst
阅读全文
posted @ 2020-07-25 22:40 DeaL57
阅读(97)
评论(0)
推荐(0)
高精度
摘要: struct BigInteger { typedef unsigned long long LL; static const int BASE = 100000000; static const int WIDTH = 8; vector<int> s; BigInteger& clean() {
阅读全文
posted @ 2020-07-25 21:55 DeaL57
阅读(96)
评论(0)
推荐(0)
2020年7月24日
1196D2 - RGB Substring (hard version)
摘要: 1196D2 - RGB Substring (hard version) #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #in
阅读全文
posted @ 2020-07-24 10:50 DeaL57
阅读(126)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
26
下一页
公告