#include #include #include using namespace std; typedef long long LL; char s[108]; vector num[108]; void dfs(int u, int k) { int d = num[u].size(), v;... ...
分类:
其他好文 时间:
2017-06-14 00:03:38
阅读次数:
224
The Nike KD 10 (X) will first release on May 26th, 2017. The KD 10 will debut in various colorways throughout the year and here is where you can find ...
分类:
其他好文 时间:
2017-06-12 19:42:03
阅读次数:
235
enumerate函数定义:defenumerate(sequence,start=0):n=startforeleminsequence:yieldn,elemn+=1函数示例:>>>seasons=[‘Spring‘,‘Summer‘,‘Fall‘,‘Winter‘]>>>list(enumerate(seasons))[(0,‘Spring‘),(1,‘Summer‘),(2,‘Fall‘),(3,‘Winter‘)]>>>lis..
分类:
编程语言 时间:
2017-06-07 14:37:42
阅读次数:
135
传送门:http://www.lydsy.com/JudgeOnline/problem.php?id=4104 【题解】 脑洞+找规律做出来的。。 我用样例作为说明吧 样例给了我们这个 AAAC.A B 看起来没啥用 这是那个矩阵的最后一列对吧。 第一列是什么呢?我们都知道,按字典序排列。 .AA ...
分类:
其他好文 时间:
2017-06-03 12:55:35
阅读次数:
168
4896: [Thu Summer Camp2016]补退选 Description X是T大的一名老师,每年他都要教授许多学生基础的C++知识。在T大,每个学生在每学期的开学前都需要选课,每 次选课一共分为三个阶段:预选,正选,补退选;其中"补退选"阶段最忙碌。在补退选阶段,学生即可以选课,也 可 ...
分类:
其他好文 时间:
2017-05-29 18:22:47
阅读次数:
230
参考文献: http://blog.csdn.net/stark_summer/article/details/48443147 hive配置 编辑 $HIVE_HOME/conf/Hive-site.xml,增加如下内容: 启动hive metastore 启动 metastore: hive - ...
分类:
数据库 时间:
2017-05-29 17:22:14
阅读次数:
233
传送门:http://www.lydsy.com/JudgeOnline/problem.php?id=4896 【题解】 隔壁thusc画风怎么这么正常啊。。 三个操作:插入字符串,删除字符串,询问以某字符串为前缀,最早什么时候超过了d个。 用trie插入然后拿个vector维护第一次超过x个的时 ...
分类:
其他好文 时间:
2017-05-27 16:12:50
阅读次数:
270
【BZOJ4896】[Thu Summer Camp2016]补退选 Description X是T大的一名老师,每年他都要教授许多学生基础的C++知识。在T大,每个学生在每学期的开学前都需要选课,每 次选课一共分为三个阶段:预选,正选,补退选;其中"补退选"阶段最忙碌。在补退选阶段,学生即可以选课 ...
分类:
其他好文 时间:
2017-05-26 17:04:57
阅读次数:
201
http://codeforces.com/problemset/problem/810/B 已知n天里,已知第i天的供货量和需求量,给定一个f,可以在n天之中选f天促销使得供货量翻倍。 问选择其中f天的供货量翻倍之后,n天之后总的销量是多少。 思路:先对于每一天都先算出正常的销量 x1 = min ...
分类:
编程语言 时间:
2017-05-25 21:56:13
阅读次数:
291
Water Slides 滑水 【问题描述】 It's a hot summer day, and Farmer John is letting Betsy go to the water park where she intends to ride every single slide. The ...
分类:
其他好文 时间:
2017-05-24 15:55:44
阅读次数:
235