自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Seeyouer的博客

一个很懒的female

  • 博客(43)
  • 收藏
  • 关注

原创 win11电脑查找已连接打印机ip的方法

win11查找已连接打印机ip

2023-08-14 15:15:12 2150

原创 一招解决IDEA使用Junit4自动创建的测试类无内容问题

跟着网上的教程,创建了类后,同样的步骤创建junit4测试类,只有类名却没有内容,这是为什么呢?

2022-09-13 23:03:16 630 1

原创 一步解决word中ctrl-v粘贴报错问题

一步解决word中ctrl-v粘贴报错问题

2022-07-12 17:02:16 6019 4

原创 《A fast and elitist multiobjective genetic algorithm: NSGA-II》阅读笔记

《A fast and elitist multiobjective genetic algorithm: NSGA-II》阅读笔记原文:K. Deb, A. Pratap, S. Agarwal and T. Meyarivan, "A fast and elitist multiobjective genetic algorithm: NSGA-II"一、论文中变量的含义:p——某个解决方案np——支配p的解决方案数量(也就是有多少个解决方案能支配p)Sp——被p支配的解决方案的集合二、算法

2021-09-16 16:58:22 900

原创 多目标优化初学习——遗传算法以及python的deap库

多目标优化的python代码中用到deap框架,首先要在命令行安装deap:pip install deap安装后deap下的一些常用的方法就可以使用了,下面是一些我第一次见的新工具。creator.create(“FitnessMin”, base.Fitness, weights=(-1.0,))这里代表创建一个名为“FitnessMin”的单目标最小问题类,并且继承了base.Fitness这个类。weights属性是tuple的形式,里面含有几个元素就代表几个目标函数,其中元素为负值代表

2021-09-13 20:24:54 2753

原创 IDEA中Debug时step into不正常执行问题解决方案

在debug时,step into自己写的方法时是可以正常进入的,但是对于System.out.println()这种系统方法就会直接跳过,和step over的执行结果一样。解决方案是:打开工具栏File中的Setting,找到图中的Stepping,将Do not step into the classes 选项前面的对勾✔取消掉,点击Apply并ok就可以了。...

2021-09-01 16:37:45 941 1

原创 Git clone出现的错误以及解决方案

1 第一种错误1.1 出现的问题fatal: unable to access ‘xxxx’: OpenSSL SSL_read: Connection wasreset, errno 100541.2 解决方案检查一下是否vpn或者其他翻墙软件没断开,将其断开即可。2 第二种错误2.1 出现的问题remote: Repository not found. fatal: repository‘https://github.com/colvaai/stargan-v2.git/’

2021-05-06 15:27:42 4647 4

原创 区块链入门笔记

区块与哈希的一一对应:区块的结构:一个区块分为两大部分:1.区块头区块头里面存储着区块的头信息,包含上一个区块的哈希值(PreHash),本区块体的哈希值(Hash),以及时间戳(TimeStamp)等等。2.区块体区块体存储着这个区块的详细数据(Data),这个数据包含若干行记录,可以是交易信息,也可以是其他某种信息。区块与Hash是一一对应的,Hash可以当做是区块的唯一标识。区块链的形成(为什么要计算区块的哈希值呢?)既然区块链是一个链状结构,就必然存在链条的头节点(第一个区块)

2020-10-19 19:15:19 671

原创 IDEA中Struts2文件上传时404错误The origin server did not find a current representation for the target resour

问题:IDEA中Struts2文件上传时404错误 The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.解决:查看jsp文件,是否form表单中的action出问题,我的问题将action写成了...

2019-05-26 09:19:16 1258

原创 (算法 动态规划dp)最优时间表问题

一台精密仪器的工作时间为 n 个时间单位。与仪器工作时间同步进行若干仪器维修程序。一旦启动维修程序,仪器必须进入维修程序。如果只有一个维修程序启动,则必须进入该维修程序。如果在同一时刻有多个维修程序,可任选进入其中的一个维修程序。维修程序必须从头开始,不能从中间插入。一个维修程序从第s个时间单位开始,持续t个时间单位,则该维修程序在第s+t-1个时间单位结束。为了提高仪器使用率,希望安排尽可能少...

2018-12-23 11:13:39 4667 2

原创 ACM/NCPC2016 C Card Hand Sorting(upc 3028)

题目描述When dealt cards in the card game Plump it is a good idea to start by sorting the cards in hand by suit and rank. The different suits should be grouped and the ranks should be sorted within each...

2018-10-06 20:58:44 294

原创 ACM/ICPC 2018亚洲区预选赛北京赛站网络赛 C-cheat

超级水的模拟的,我也就会做模拟了……坑有点多,一直没调出来bug,赛后才发现少了一个数字……描述Cheat is a card game played by four players sitting around a table.They are numbered from 1 to 4 in clockwise order.A pack of 52 cards is used. The...

2018-09-22 20:40:54 531

原创 越认真,越在意

连续两天,昨天沈阳网络赛,卡题;今天徐州网络赛,因为我的理解问题,让队友白白浪费了最后一个小时的黄金时间,sorry 作为队里的翻译,我没能用最简洁的语言把题意清晰的表达给队友,这个最最致命的。 一直是实验室实力担当的两个人,一成为我的队友却接连失去两次现场赛机会,我接受不了。以前一直不在意的,可是这两天却在意的要命,可能是跟两个强大的队友同队,对自己的要求也变高了很多吧。因为我觉...

2018-09-09 20:02:10 298 1

原创 UPC 6910 洗衣服/hdu 6000 wash

题目描述你现在要洗L件衣服。你有n台洗衣机和m台烘干机。由于你的机器非常的小,因此你每次只能洗涤(烘干)一件衣服。第i台洗衣机洗一件衣服需要wi分钟,第i台烘干机烘干一件衣服需要di分钟。请问把所有衣服洗干净并烘干,最少需要多少时间?假设衣服在机器间转移不需要时间,并且洗完的衣服可以过一会再烘干。 输入输入第一行有3个整数L,n和m。第二行有n个整数w1,w2,...,wn。第三...

2018-08-08 10:49:17 275

原创 碎碎念

矫情的人,就应该每天找无数的鸡汤给自己喝,然后告诉自己你很棒你身边的人对你很好你很可爱有很多爱你的人未来还有很多美好的事先把现在的事情做好加油。...

2018-08-08 09:32:11 176

原创 UPC 6611 Bichrome Tree

题目描述We have a tree with N vertices. Vertex 1 is the root of the tree, and the parent of Vertex i (2≤i≤N) is Vertex Pi. To each vertex in the tree, Snuke will allocate a color, either black or white...

2018-08-03 10:34:03 237

原创 UPC 6581 Fennec VS. Snuke

题目描述Fennec and Snuke are playing a board game. On the board, there are N cells numbered 1 through N, and N−1 roads, each connecting two cells. Cell ai is adjacent to Cell bi through the i-th road. ...

2018-07-31 20:59:09 202

原创 UPC 6347 Out of Sorts II

题目描述Keeping an eye on long term career possibilities beyond the farm, Bessie the cow has started learning algorithms from various on-line coding websites. Her favorite algorithm thus far is “bubble...

2018-07-31 10:23:37 212

原创 UPC 6604 Sandglass

题目描述 We have a sandglass consisting of two bulbs, bulb A and bulb B. These bulbs contain some amount of sand. When we put the sandglass, either bulb A or B lies on top of the other and becomes the up...

2018-07-31 09:06:50 187

原创 UPC 5727 小奇遐想

题目描述撷来一缕清风飘渺 方知今日书信未到 窗外三月天霁垂柳新长枝条 风中鸟啼犹带欢笑 ——《清风醉梦》 小奇望着青天中的悠悠白云,开始了无限的遐想,在它的视野中,恰好有n朵高度不同的白云排成一排,他想从左到右选出四朵白云a,b,c,d,使得h_a<h_b<h_d<h_c,即看起来像是彩虹的形状!它想知道有多少种方案数。输入第一行包括1个整数n。 第二行包...

2018-07-29 10:11:38 215

原创 AtCoder Grand Contest 009—Tournament

题目描述 N contestants participated in a competition. The total of N−1 matches were played in a knockout tournament. For some reasons, the tournament may not be “fair” for all the contestants...

2018-04-24 13:20:37 194

原创 AtCoder Grand Contest 010—Boxes

题目描述 There are N boxes arranged in a circle. The i-th box contains Ai stones. Determine whether it is possible to remove all the stones from the boxes by repeatedly performing the f...

2018-04-23 16:32:49 204

原创 mcpc2017—Faulty Robot

题意大意: 如图,红色边为强制边,起点为①,机器人在程序控制下每一步都会走强制边(若没有强制边则停下),但是这个程序有bug会使机器人可能会出错而不一定走强制边(机器人只会出错一次),问你机器人可能停下的地点有几个?思路: 把强制边权值设为0,非强制边权值为1,跑一遍bfs,找距离①小于等于1的即可(因为只会出错一次)注意: 一定要跑完bfs之后再判断距离!输入The fi...

2018-04-23 14:57:38 235

原创 CodeForces - 645C Enduring Exodus

In an attempt to escape the Mischievous Mess Makers’ antics, Farmer John has abandoned his farm and is traveling to the other side of Bovinia. During the journey, he and his k cows have decided to sta

2018-01-25 11:28:32 360

原创 Codeforces-68B Energy exchange

It is well known that the planet suffers from the energy crisis. Little Petya doesn’t like that and wants to save the world. For this purpose he needs every accumulator to contain the same amount of en

2018-01-20 21:02:16 537

原创 codeforces-768B Code for 1

Jon fought bravely to rescue the wildlings who were attacked by the white-walkers at Hardhome. On his arrival, Sam tells him that he wants to go to Oldtown to train at the Citadel to become a maester,

2017-12-03 11:16:40 270

原创 静态邻接表的建立

struct edge{ int end,next;}e[1000];int head[1000],cnt=0;void add(int start,int end){//头插法,单向 e[cnt]={end,head[start]}; head[start]=cnt;//记录下标 cnt++;}

2017-11-29 10:42:08 302

原创 CodeForces - 839C journey

Example Input 4 1 2 1 3 2 4 Output 1.500000000000000 Input 5 1 2 1 3 3 4 2 5 Output 2.000000000000000题意:输入点的个数N,然后输入N-1条边(无向),判断叶子的期望。 期望=概率*路径#include<io

2017-11-29 10:29:09 258

原创 uva508 Morse Mismatches

Samuel F. B. Morse is best known for the coding scheme that carries his name. Morse code is still used in international radio communication. The coding of text using Morse code is straightforward.

2017-11-20 22:06:17 434

原创 UVA 1589 xiangqi

Xiangqi is one of the most popular two-player board games in China. The game represents a battle between two armies with the goal of capturing the enemy’s “general” piece. In this problem, you ar

2017-11-13 20:56:04 357

原创 UVA 11809 Floating-point numbers

Floating-point numbers are represented differently in computers than integers. That is why a 32-bit floating-point number can represent values in the magnitude of 1038 while a 32-bit integer can

2017-11-03 16:34:41 261

原创 uva583 Prime Factors

Sample Input -190 -191 -192 -193 -194 195 196 197 198 199 200 0 Sample Output -190 = -1 x 2 x 5 x 19 -191 = -1 x 191 -192 = -1 x 2 x 2 x 2 x 2 x 2 x 2 x

2017-11-03 16:18:36 267

原创 codeforces 776E - The Holmes Children

Problem Description The Holmes children are fighting over who amongst them is the cleverest. Mycroft asked Sherlock and Eurus to find value of f(n), where f(1) = 1 and for n ≥ 2, f(n) is

2017-11-01 15:26:30 316

原创 Codeforces Round #400 (Div. 1 + Div. 2, combined)D - The Door Problem(2-sat)

Problem Description Moriarty has trapped n people in n distinct rooms in a hotel. Some rooms are locked, others are unlocked. But, there is a condition that the people in the hotel can only es

2017-10-31 15:26:04 349

原创 Codeforces Round #402 (Div. 2) D. String Game

Problem Description Little Nastya has a hobby, she likes to remove some letters from word, to obtain another word. But it turns out to be pretty hard for her, because she is too young. Therefore, he

2017-10-24 15:33:18 286

原创 CF-777C Alyona and Spreadsheet

Problem Description During the lesson small girl Alyona works with one famous spreadsheet computer program and learns how to edit tables. Now she has a table filled with integers. The table con

2017-10-23 18:36:22 432

原创 HDU 1863 畅通工程

省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可)。经过调查评估,得到的统计表中列出了有可能建设公路的若干条道路的成本。现请你编写程序,计算出全省畅通需要的最低成本。 Input 测试输入包含若干测试用例。每个测试用例的第1行给出评估的道路条数 N、村庄数目M ( < 100 );随后的 N 行对应村庄间道路

2017-10-17 15:26:35 310

原创 UVA-1586 Molar Mass - ACM/ICPC Seoul 2007

倒着找更好找一些#include<iostream>#include<cstdio>#include<cstring>using namespace std;int main(){ int T;cin>>T; while(T--){ double sum=0.0,m=1.0;int k=1; char s[100];cin>>s;int nu

2017-10-15 21:36:37 417

原创 UVA-11059 Maximum Product

看清楚题意,连续的子序列,不能从小到大排序再乘。#include<iostream>#include<stdio.h>#include<string.h>#include<string>#include<math.h>#include<algorithm>using namespace std;int main(){ long long max,max1;//注意范围

2017-10-15 12:55:04 193

原创 UVA-725 Division

暴力枚举: i从10000开始找(因为N最小为2,所以i一定大于i/N,一定是五位数),到98765,如果是N的倍数就开始判断i和i/N是否为不重复数,是->输出,不是->继续找;注意: ① 0的位置及个数,如果i/N是四位数,那么0要添加在分母前面; ②输出格式格式格式,我就卡这了,输入0之后不输出空行;代码:#include<iostream>#include<stdio.h>#inc

2017-10-15 12:26:02 225

空空如也

空空如也

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

TA关注的人

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