题目传送门 题目大意:给出一个长度为n的数组,这个数组有的数是给出的,有的数是固定的,且范围都在[1,200]之间,要求这个数组中,每一个数字都小于等于 前后两个数字的最大值,求方案数mod p。 思路:一眼看出是个dp,但是不太擅长这个,看了大佬的题解,又加上了一些自己的思考。 由于这个数组每一个 ...
分类:
其他好文 时间:
2018-11-08 23:19:15
阅读次数:
224
1、报错如下:CMake Error at cmake/boost.cmake:76 (MESSAGE): You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=<directory> This CMake script will look ...
分类:
数据库 时间:
2018-11-07 19:57:02
阅读次数:
442
四个函数: --1、根据路径获取文件名 --2、根据路径获取文件名(去掉扩展名) 3、根据路径获取路径目录(无文件名) 4、获取文件扩展名 --代码使用示例1 --代码使用示例2 得到结果: path only:D:\messages\attachrecv\0.abe3b3d58161ccb3de7 ...
分类:
数据库 时间:
2018-11-06 01:04:01
阅读次数:
641
首先:检查server端和client端的用户名和密码确认都无误; 然后:检查了服务器端/etc/rsyncd.conf 配置文件未发现异常, 再次:通过配置文件找到了log存放目录 $ cat /etc/rsyncd.conf | grep -i log log file = /var/log/r ...
分类:
其他好文 时间:
2018-11-05 23:35:35
阅读次数:
229
定义BOM(Byte Order Mark),字节顺序标记,出现在文本文件头部,Unicode编码标准中用于标识文件是采用哪种格式的编码。它的编码是FEFF。 说明 在 UTF-8 文件中放置 BOM 主要是微软的习惯 UTF-8 不需要 BOM,尽管 Unicode 标准允许在 UTF-8 中使用 ...
分类:
Web程序 时间:
2018-11-05 13:59:54
阅读次数:
181
启动Ubuntu后无法正常进入,停留在GUN GRUB界面
分类:
系统相关 时间:
2018-11-04 19:18:58
阅读次数:
3442
1.pwd Print the current working directory. With the -P option, pwd prints the physical directory, without any symbolic links; the -L option makes pwd ...
分类:
系统相关 时间:
2018-11-04 11:07:11
阅读次数:
189
Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after dividi ...
分类:
其他好文 时间:
2018-11-03 14:08:15
阅读次数:
188
学习博客:戳这里 附本人代码: 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 const int maxn = 1e5 + 10; 5 const ll mod = 998244353; 6 s ...
分类:
其他好文 时间:
2018-11-03 14:06:18
阅读次数:
345
出现问题: Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: In aggregated query without GROUP BY,expression #2 of ...
分类:
数据库 时间:
2018-11-02 13:06:42
阅读次数:
2347