CF1480A Yet Another String Game Problem 给出一个字符串,两人轮流操作,每次操作可以将一个字符改为另外一个字符,当不可以不改动,先手目标是让最终字符串字典序最小,后手目标相反,求最终字符串。 Sol 贪心地模拟即可。 #define in read() int ...
分类:
其他好文 时间:
2021-02-15 12:23:09
阅读次数:
0
#随便写个,引用下python的import this Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than com ...
分类:
其他好文 时间:
2021-02-09 11:44:21
阅读次数:
0
音频判断:librosa和 matplotlib Librosa是音频识别的包 matplotlib是音频转图片可视化的包 命令下载: pip install librosa -i https://mirrors.ustc.edu.cn/pypi/web/simple pip install mat ...
分类:
其他好文 时间:
2021-02-08 12:45:04
阅读次数:
0
Team Name(2.5) Prime Game(2.6) XOR Sums(2.7) Another Tree with Number Theory Multiple Games Cell Shell Bash Matrix Dream and the Multiverse Cut the Ca ...
分类:
其他好文 时间:
2021-02-08 12:12:42
阅读次数:
0
说明 共用了两种方法进行检测 方法1: 使用opencv的canny进行边缘检测,在此之前先变灰和加入高斯模糊 方法2: 对图片二值化,随后找到关键点,并在空白画板画关键点 代码 import cv2 as cv import numpy as np # 读路径下的图片 img = cv.imrea ...
分类:
其他好文 时间:
2021-02-05 10:53:28
阅读次数:
0
场景:前端在request body中传了多个参数,为了方便使用@RequestBody映射成相应的参数对象。 @PostMapping(value = "/game/sync") public WebMessage gameMsgReport(UserInfo userInfo,@RequestB ...
分类:
Web程序 时间:
2021-02-04 11:51:35
阅读次数:
0
具体报错信息: 1 Whitelabel Error Page 2 This application has no explicit mapping for /error, so you are seeing this as a fallback. 3 4 Mon Feb 01 21:33:07 C ...
分类:
移动开发 时间:
2021-02-02 11:27:59
阅读次数:
0
使用IDEA自带的打包工具,simple-robot-conf.properties这个配置文件总是会被一同打进jar包里,失去配置文件的作用,并且即使把配置文件和jar包放在同一目录下,jar包运行时也会找不到配置文件,就很奇怪。 但使用maven的打包功能则不会 使用这个命令 mvn compi ...
分类:
编程语言 时间:
2021-02-02 10:35:46
阅读次数:
0
Game of Taking Stones HDU - 5973 题目大意 给你两堆石子,分别有$x$,$y$个,可以同时在两堆里取相同个数,也可以只在一堆里取不小于$1$个的石子。 \(x,y<10^{100}\) 解 首先,不考虑数据范围,这是个经典的威佐夫博弈,先手输只需满足如下式子即可: \ ...
分类:
其他好文 时间:
2021-02-01 11:37:37
阅读次数:
0
一、下载源地址修改,用国内镜像站点: 国内源: 新版ubuntu要求使用https源,要注意。 清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https:// ...
分类:
其他好文 时间:
2021-01-29 11:56:43
阅读次数:
0