效果图:键盘控制各个x,y,z,还有fov数值 一开始的w, h = img.shape[0:2]这里宽、高错乱,原因未知,只能这么用 python版本的: c++ 版本: include include include "opencv2/opencv.hpp" using namespace st ...
分类:
编程语言 时间:
2019-10-25 11:41:35
阅读次数:
102
/** * 饿汉式 在类加载时实现初始化,浪费内存 * 线程安全 * 用于访问量大,多线程访问 * */public class Utils{ private static final Utils instanch=new Utils(); private Utils() { } public st ...
分类:
其他好文 时间:
2019-10-24 15:21:05
阅读次数:
54
String > Date String dateString = "2019-10-11 08:34:27" ; String strDateFormat = "yyyy-MM-dd HH:mm:ss"; SimpleDateFormat sdf = new SimpleDateFormat(st ...
分类:
其他好文 时间:
2019-10-23 21:53:42
阅读次数:
95
time模块 概述:time库是Python中处理时间的标准库,包含以下三类函数 时间获取: time(), ctime(), gmtime() 时间格式化: strftime(), strptime() 程序计时: sleep(), perf_counter() 时间获取: 时间格式化: 1.st ...
分类:
编程语言 时间:
2019-10-23 19:57:23
阅读次数:
83
题目传送门 【题目大意】 题意同任务安排1,数据范围变为$1\le N\le3*10^5,1\le S,T_i,C_i\le512$ 【思路分析】 我们对任务安排1的解法稍作优化 设$st,sc$分别为$T,C$数组的前缀和,转移方程转化为$f[i]=min\{f[j]-(st[i]+S)*sc[j ...
分类:
其他好文 时间:
2019-10-22 15:02:57
阅读次数:
58
微调后: Best score: 0.983Best parameters set: clf__C: 10 clf__penalty: 'l2' vect__max_df: 0.5 vect__max_features: None vect__ngram_range: (1, 2) vect__st ...
分类:
其他好文 时间:
2019-10-22 12:44:46
阅读次数:
218
此题与$luoguP1220$关路灯类似,但是这个题目的收益随时间的变化而变化. 起初我思考来一个三维$dp$,即两维坐标,一维时间. 可惜爆了空间(艹). 但是由于时间是线性的,所以我们可以反着设. 即设$dp[0/1][st][ed]$表示处理完按坐标排序后的第$st$个蛋到第$ed$个蛋被处理 ...
分类:
其他好文 时间:
2019-10-21 20:40:22
阅读次数:
79