摘要: input默认输入字符串,输入整数时可以用int()函数和eval()函数,浮点数则用floa()函数例如a=int(input())/a=eval(input()) ... 阅读全文
posted @ 2019-02-17 16:59 hum0r0 阅读(6) 评论(0) 推荐(0)
摘要: 1增1.1【插入单行】insert [into] (列名) values (列值)例:insert into Strdents (姓名,性别,出生日期) values ('开心朋朋','男','1980/6/1... 阅读全文
posted @ 2019-02-16 20:42 hum0r0 阅读(7) 评论(0) 推荐(0)
摘要: 思路:DP#include using namespace std;const long long int mod=1e9+7;long long int dp[200100][10];int main(){ ... 阅读全文
posted @ 2019-01-21 08:51 hum0r0 阅读(3) 评论(0) 推荐(0)
摘要: After their royal wedding, Jiajia and Wind hid away in XX Village, to enjoy their ordinary happy life. Peo... 阅读全文
posted @ 2019-01-17 18:42 hum0r0 阅读(4) 评论(0) 推荐(0)
摘要: 题意:一颗n个个节点的树,有n-1条边,pi为i节点与pi节点相连,每个节点有个权值,但现在只知道根节点的权值和奇数层节点到根节点的所经过的点的权值之和,偶数层到根节点的和未知,标位-1,让你求出所有点的权值之和... 阅读全文
posted @ 2019-01-09 14:45 hum0r0 阅读(9) 评论(0) 推荐(0)
摘要: 御坂美琴与妹妹们#include using namespace std;int main(){ int n; scanf("%d",&n); if(n>=1&&nusing namespace... 阅读全文
posted @ 2019-01-06 17:32 hum0r0 阅读(8) 评论(0) 推荐(0)
摘要: Clairewd is a member of FBI. After several years concealing in BUPT, she intercepted some important messag... 阅读全文
posted @ 2019-01-04 19:13 hum0r0 阅读(6) 评论(0) 推荐(0)
摘要: It is well known that AekdyCoin is good at string problems as well as number theory problems. When given a... 阅读全文
posted @ 2019-01-04 11:19 hum0r0 阅读(7) 评论(0) 推荐(0)
摘要: 本文转发,希望原博主不要介意,介意的话我可以删掉原文链接:https://subetter.com/articles...前文已经介绍了经典的KMP算法,本文继续介绍KMP算法的扩展,即扩展KMP算法。问题定义:... 阅读全文
posted @ 2019-01-03 21:35 hum0r0 阅读(14) 评论(0) 推荐(0)
摘要: The little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the little ... 阅读全文
posted @ 2019-01-02 20:12 hum0r0 阅读(10) 评论(0) 推荐(0)