自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 opencv 读取的图像颠倒

一批tiff格式图像,部分图像使用opencv读取显示后,发现与原图像相比,上下颠倒。

2022-07-28 18:00:48 2005 1

原创 【2022】Windows 11/10开机自启动 WSL下的服务

最近在使用wsl部署服务,看了不少wsl自启动的帖子,在这里总结一下。大概思路:通过运行windows中的启动脚本,来启动wsl内的脚本,从而启动服务。总结:在写完脚本后前面几次测试服务没有正常启动,通过一步一步排查发现是启动命令写错了。如果有问题,建议按测试步骤一步一步排查不同系统带来的问题不一样,最后附有博主电脑配置,可供参考...

2022-05-31 09:51:24 7592 1

原创 python存取dict到csv中,进行接口自动化测试

目的:将数据写入csv文件,并保存要求:现在有多个测试用例,每个用例都是一个dict,需要将所有用例存储到一个csv文件中 #将数据存入csv # case1 = [{'name': 'Tony', 'age': 17}] # case2 = [{'name': '李华', 'age': 21}] #数据样例flag = 0 def write_csv(self, case): header = list(case.keys(.

2021-01-06 16:54:51 1095

原创 acm 1213 How Many Tables 【并查集】

Problem DescriptionToday is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know how many tables he needs at least. You have to notice that not all the fri

2017-08-02 17:32:40 221

原创 acm Bear and Three Balls

Limak is a little polar bear. He has n balls, the i-th ball has size ti.Limak wants to give one ball to each of his three friends. Giving gifts isn't easy — there are two rules Limak must obey to make

2017-07-31 17:41:08 189

原创 HDU 1241 dfs 绝望的WA

if(xx>=0&&yy>=0&&xx

2017-07-31 17:06:31 239 1

原创 1205 吃糖果

HOHO,终于从Speakless手上赢走了所有的糖果,是Gardon吃糖果时有个特殊的癖好,就是不喜欢将一样的糖果放在一起吃,喜欢先吃一种,下一次吃另一种,这样;可是Gardon不知道是否存在一种吃糖果的顺序使得他能把所有糖果都吃完?请你写个程序帮忙计算一下。 Input第一行有一个整数T,接下来T组数据,每组数据占2行,第一行是一个整数N(0<N<=1000000),第二行是N个数,表示N

2017-07-30 20:30:20 171

原创 acm Trailing Zeroes (III)

N!末尾0的求法#include#includeusing namespace std;long long ze(long long n)//n!末尾0的个数 {long long num=0; while(n){ num+=n/5; n/=5; } return num;}int main(){ long long m,q,ans,t=1

2017-07-27 17:13:07 186

原创 acm Subsequence 3061

A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length of the sub

2017-07-27 16:15:31 232

原创 NYOJ 喷水装置(二)

描述有一块草坪,横向长w,纵向长为h,在它的橫向中心线上不同位置处装有n(n<=10000)个点状的喷水装置,每个喷水装置i喷水的效果是让以它为中心半径为Ri的圆都被润湿。请在给出的喷水装置中选择尽量少的喷水装置,把整个草坪全部润湿。输入第一行输入一个正整数N表示共有n次测试数据。每一组测试数据的第一行有三个整数n,w,h,n表示共有n个喷水装置,w表示草坪的横向长度,

2017-07-26 20:10:17 248

原创 acm Array

Vitaly has an array of n distinct integers. Vitaly wants to divide this array into three non-empty sets so as the following conditions hold:The product of all numbers in the first set is less than

2017-07-25 19:32:54 230

原创 acm 0和5

小K手中有n张牌,每张牌上有一个一位数的数,这个字数不是0就是5。小K从这些牌在抽出任意张(不能抽0张),排成一行这样就组成了一个数。使得这个数尽可能大,而且可以被90整除。注意:1.这个数没有前导0,2.小K不需要使用所有的牌。Input每个测试数据输入共2行。 第一行给出一个n,表示n张牌。(1第二行给出n个整数a00,a11,a22,…,an−1n−1 (ai

2017-07-25 16:22:50 478

原创 acm ACboy needs your help again!

ACboy was kidnapped!! he miss his mother very much and is very scare now.You can't image how dark the room he was put into is, so poor :(. As a smart ACMer, you want to get ACboy out of the monste

2017-07-25 10:43:11 259

原创 acm 快速排序

大家都知道,快速排序是不稳定的排序方法。 如果对于数组中出现的任意ai" role="presentation" style="display: inline; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; direction: ltr; max-width: none; max-heigh

2017-07-23 18:00:43 393

原创 acm EXCEL排序

Excel可以对一组纪录按任意指定列排序。现请你编写程序实现类似功能。Input测试输入包含若干测试用例。每个测试用例的第1行包含两个整数 N (行,每行包含一条学生纪录。每条学生纪录由学号(6位数字,同组测试中没有重复的学号)、姓名(不超过8位且不包含空格的字符串)、成绩(闭区间0,1000,100内的整数)组成,每个项目间用1个空格隔开。当读到 N=0 时,全部输入结束,相

2017-07-23 17:04:14 303

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除