Select All Form List 关键字 —— 模拟选择表单中的所有列表

Select All Form List :模拟选择表单中的所有列表; 该关键字接收[ locator ]一个参数,locator可以通过id或者name等进行定位; ============================================================== Select All Form List id=aac
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

链表上的冒泡、选择排序算法

做如下定义 typedef struct LNode { int num; char name[20]; struct LNode *next; } LNode, *LinkList; 冒泡排序算法 void BubbleSort(LinkList &L) { LinkList i = NULL, j = NULL; for (i = L; i->next->next != NULL; i = i->next) { for (j
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

最短路径 floyd/dijkstra-Find the City With the Smallest Number of Neighbors at a Threshold Distance

2020-01-30 22:22:58 问题描述: 问题求解: 解法一:floyd 这个题目一看就是floyd解最合适,因为是要求多源最短路,floyd算法是最合适的,时间复杂度为O(n ^ 3)。 int inf = (int)1e9; public int findTheCity(int n, int[][] edges, int distanceThreshold) { int[][] dp = new int[n][n]; fo
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

题解【Luogu6022 快乐水】

\[ Preface \] 大概在半年前出过这道((( 然后当天读完这题,把自己写的 std 改了一下 ll 和特判信息交上去就 A 了。 捡了个大便宜。 \[ Description \] 你一开始有 \(n\) 瓶快乐水。 有 \(m\) 个附属品,每喝一瓶快乐水就可以得到这 \(m\) 个附属品各 \(1\) 个,若有 \(a[i]\) 个附属品 \(i\) ,就可以再换一瓶快乐水。 问一共可以喝多少瓶快乐水。若可以无限白嫖就输出 Inf 。 \[ Solution \] 一瓶一瓶处理快
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

odoo检查规则

@api.multi def button_cancel(self): for move in self: if not move.journal_id.update_posted: raise UserError(_('You cannot modify a posted entry of this journal.\nFirst you should set the journal to allow cancelling entries.')) # We remove all the an
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

Android基础——对话框

写了四种对话框 布局文件 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layou
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

Android基础——通知

由于版本问题,通知可能显示不出来。。 两个活动,Main主活动用来显示通知,Detail用来显示通知详细内容 两个布局文件 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="ht
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

树莓派搭载CentOS7系统初始配置

系统属性: 树莓派型号:3b SD:32GB 系统:CentOS-Userland-7-armv7hl-RaspberryPI-Minimal-1908-sda.raw 开机配置: 连接树莓派:   配件:网线   过程:将网线插到路由器上通过路由器查看内网IP地址   点击管理查看树莓派ip:     打开Xshell 6 ,通过ssh连接树莓派:(Xshell 6 可以申请学校/家庭版的,是免费的)        设置登录树莓派的账号密码,此账号密码是装系统的时候自动配置的初始密码,和安装
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

Infinite Prefixes CodeForces - 1295B

B. Infinite Prefixes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given string ss of length nn consisting of 0-s and 1-s. You build an infinite string tt as a concatenation of
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

Select Checkbox关键字——模拟选择一个Checkbox的操作

Select Checkbox关键字:模拟选择一个Checkbox的操作; 该关键字接收[ locator ]一个参数,locator可以通过id或者name等进行定位; ========================================================================== Select Checkbox id=box
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

题解【洛谷P1083】[NOIP2012]借教室

题面 二分到哪一个申请人要修改订单,可以差分\(+\)前缀和达到\(\Theta(n)\)的\(\text{check}\)。 具体细节见代码。 #include <bits/stdc++.h> #define itn int #define gI gi #define int long long using namespace std; typedef long long ll; inline int gi() { int f = 1, x = 0; char c = getc
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

ROS的Target Platforms

问题 今天编译VIORB遇到了以下错误: 查到的资料 ubuntu18安装的二进制ros包需要特定版本的库函数 ros官方文档 文档pdf 参考回答 参考回答pdf
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

Leetcode总结帖【11-20】

11. Container with Most Water 使用双指针i和j,分别指向数组的两端。每次最大值是res = max(res, (j - i) * min(height[j], height[i]))。每次根据比较height[i]和height[j]的大小来更新i和j。 只有下一个height[i] or height[j]比当前的最大值要大才考虑更新下一个。 12. Integer to Roman 这道题只能硬做,算是一道实现题 1 string intToRoman(in
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

C++ ubuntu16.04 安装opencv库

ubuntu16.04 + opencv3.2.0 (c++)安装教程https://blog.cs
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

shell 自动输密码

第一种:sudo -secho $passwd |sudo -S mkdir /111第二种:安
分类: 其他 发布时间: 01-30 23:17 阅读次数: 0

C++ 拼接图片(apollo框架下)

C++ , image_combine.cc#include <iostream>#in
分类: 其他 发布时间: 01-30 23:16 阅读次数: 0

C++ 计算程序的运行时间

#include <chrono>int main(){auto start = std
分类: 其他 发布时间: 01-30 23:16 阅读次数: 0

shell 匹配 三个文件夹下 "同一时刻"的文件

#!/bin/bash##下面三个txt用来是所有的lidar,vis,radar路径ls -R /
分类: 其他 发布时间: 01-30 23:16 阅读次数: 0

python 在指定位置显示图片并调整窗口大小(或图片大小)

接着shell匹配时间戳写的#-*-coding:utf-8-*-importcv2ascvimpo
分类: 其他 发布时间: 01-30 23:16 阅读次数: 0

python 已知 Camera 到Lidar1外参 与 Lidar2到Lidar1外参,求Camera到Lidar2外参

Camra到Lidar1外参:camera_short_extrinsics.yamlheader:
分类: 其他 发布时间: 01-30 23:15 阅读次数: 0