UVA11361 Investigating Div-Sum Property 给定 \(A,B,K\),求在 \([A , B]\) 中,有多少个整数本身能被 \(K\) 整除,并且各个位上数字之和也能被 \(K\) 整除。 一道非常经典的数位 DP 题。 设 \(f(d,m_1,m_2)\) 表 ...
分类:
其他好文 时间:
2021-04-26 13:29:15
阅读次数:
0
1.到官网下载自己的版本 2.解压 3.解压后的文件转移,建议转移,错误少 mv 原位置 /usr/local/mysql 4. 创建数据位置 data文件夹和日志位置 log文件夹,位置自定义,再log 里面创建日志文件 touch error.log 5.检查是否存在mysql用户和mysql组 ...
分类:
数据库 时间:
2021-04-26 13:27:50
阅读次数:
0
在VS2005及以上的环境中,所见工程的默认字符集形式是Unicode,而VC6.0中,字符集形式为多字节字符集(MBCS: Multi-Byte Character Set),这样导致了许多字符转换的方法在Unicode的环境中不允许使用,强制类型转换的结果也会变得非常奇怪。 如LPCTSTR与C ...
分类:
其他好文 时间:
2021-04-24 13:55:12
阅读次数:
0
update phome_ecms_news_check set filename= replace(filename,'Under4-',''); update phome_ecms_news_check set title= replace(title,'Under4 ',''); update ...
分类:
数据库 时间:
2021-04-24 13:52:11
阅读次数:
0
1 Ruby@DESKTOP-4INK1I3 MINGW64 /f/Git/test (master) 2 $ git push origin master 3 fatal: unable to access 'https://github.com/xxx/test.git/': OpenSSL S ...
分类:
其他好文 时间:
2021-04-24 13:43:19
阅读次数:
0
#python的discard和remove方法 两者都是对集合类型的元素进行删减 格式: 集合名.discard(element) 集合名.remove(element) ##代码 set_actors = {"张牧之","黄四郎","胡万","汤师爷","马邦德"} print(set_acto ...
分类:
编程语言 时间:
2021-04-24 13:36:54
阅读次数:
0
select #include<sys/select.h> int select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, struct timeval* timeout); // 被监听的文件描述符的总数,可读、 ...
分类:
其他好文 时间:
2021-04-24 13:30:52
阅读次数:
0
后缀数组构造方法: 1.倍增 直接参考刘汝佳蓝书 时间复杂度不优秀,但代码实现简单,细节处理较多,建议参考思路后背过代码。 #include<iostream> #include<cstdio> #include<cmath> #include<algorithm> #include<cstring ...
分类:
编程语言 时间:
2021-04-24 13:23:55
阅读次数:
0
defunct.sh #/bin/env sh #set -e # errexit #cwRsyncServer <=> case sensitive(module) #cwRsyncClinet <=> case insensitive export LANG=zh_CN.utf8 ml_slb= ...
分类:
其他好文 时间:
2021-04-24 13:19:22
阅读次数:
0
set(CMAKE_BUILD_TYPE "Release")if( CMAKE_BUILD_TYPE STREQUAL "Debug" ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g -Wall -Wno-unused-variabl ...
分类:
其他好文 时间:
2021-04-24 13:16:43
阅读次数:
0