自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 出现 unable to load history 问题解决方案

用网上的好多方法试了都没有成功,包括更换节点,更换“梯子”,清除浏览器数据,但是都没有成功。但是今天再次用上面的顺序进行操作清理浏览器的缓存数据,发现竟然成功了。猜测,要先打开“梯子”,安排好一切,再清理浏览器的缓存数据,最后在登录chatGPT。第二步,打开你的浏览器,我的是谷歌浏览器。按下列步骤进行操作:右上角点击三个点-->更多工具-->清除浏览数据。第三步,再次登录chatGPT,然后就发现熟悉的界面又回来了。首先第一步,打开你的“梯子”,选择好一个可用的节点。问GPT问题,一直显示Erro。

2023-09-24 09:48:13 12423 12

原创 Matlab中关于 : 的使用

那么,这个矩阵的 i 和 j 取值范围是:1<= i <= n-1 ,1<= j <= m-1。则,当 a 和 b 被省略时,代表的范围就是最大范围(1--n) or (1--m)设,mat 这个矩阵的规格是 n*m,temp = mat( i , j )在这个矩阵中,a:b 代表的含义是范围是从 a--b。7.取矩阵i--j行,a--b列的值进行操作。5.取矩阵所有行的i--j列的值进行操作。6.取矩阵i--j行的所有列的值进行操作。4.取矩阵i行,j列的值进行操作。3.取整个矩阵的值进行操作。

2023-09-17 20:01:36 1457

原创 ROS:link ‘camera_link‘ material ‘black‘ undefined.

问题1:link 'camera_link' material 'black' undefined.原因:'camera_link'的颜色未定义。

2023-08-26 19:04:34 832

原创 ROS中出现“robot_1“ passed to lookupTransform argument target_frame does not exist.问题

描述:运行多车跟随代码,跟随车辆报错 ERROR] [1692338600.211577491]: "robot_1" passed to lookupTransform argument target_frame does not exist.解决方案:在获取两者间坐标系变换的tf数据之前,添加一行代码,在获取坐标系转换的tf 数据之前先等待一段时间,等待变换在tf树中生效。原因:lookupTransform()函数中的目标坐标系参数“robot_1”不存在。

2023-08-18 14:20:13 1251

原创 Gazebo打不开

把下载到的模型文件替换主目录下的.Gazebo文件夹下models文件夹。原因:启动Gazebo,会优先从网络上下载模型。问题:启动Gazebo半天打不开,无反应。补充:显示 .文件(隐藏文件夹)的方法。1. CTRL + H :显示隐藏文件夹。1.断网,然后再启动Gazebo。2. 在文件栏把显示选项勾选上。

2023-07-30 20:05:20 972

原创 Ros终端出现找不到bash: /home/***/devel/setup.bash: 没有那个文件或目录

现象:Ros终端出现找不到bash: /home/***/devel/setup.bash: 没有那个文件或目录。问题:配置时路径写错。

2023-07-25 20:50:16 4001

原创 Tomcat 启动JRE不正确和界面乱码

前言:最近装了Tomcat,但是一直有各种各样的问题无法解决,百度了一堆东西才算是解决了问题。下面我把问题总计一下。一、Tomcat启动总是JRE不正确问题:显示JRE不正确,那么肯定是JRE的路径没有被正确的找到,那么我们就对于JRE的路径进行配置。下面介绍两种方法:(1)右击“此电脑” -- >属性 --> “高级系统设置” --> “环境变量” -...

2020-03-25 00:29:16 1019

原创 CodeBlocks找不到编译器的解决方法

前言:电脑重装了系统,安装了Code Blocks,发现代码不能够编译,显示找不到编译器。解决办法:错误是因为默认的编译器的位置发生了改变,找不到编译器的位置,那么就需要把编译器的位置进行修改就可以了。步骤:1.在CodeBlocks中找到Setting,单击找到Compiler setting;2.找到Toolchain executab...

2019-11-29 17:25:51 11304 1

原创 第三届蓝桥杯国际赛总结----德国行

前言: 原谅我的懒,已经回来好多天了,现在才开始准备写写自己的总结收获。 2019.11.1早上八点,飞机降落在首都国际机场,那一刻,意味着我的蓝桥杯国际赛的行程是真的完全结束了。挤地铁,赶向高铁站,老师请客吃饭,两个小时的高铁,一个小时的公交,终于在下午六点到达了学校,室友在校门口等着我,美滋滋。回到寝室,收拾收拾就上床了,上床的时候还在和室友说,我不累也不困...

2019-11-06 20:21:59 965 3

原创 Face The Right Way POJ - 3276

题目:Farmer John has arranged hisN(1 ≤N≤ 5,000) cows in a row and many of them are facing forward, like good cows. Some of them are facing backward, though, and he needs them all to face forward t...

2019-10-22 17:17:33 199

原创 Desert King POJ - 2728(最优比率生成树)

题目:David the Great has just become the king of a desert country. To win the respect of his people, he decided to build channels all over his country to bring water to every village. Villages which a...

2019-10-21 17:19:04 421

原创 Dropping tests POJ - 2976 (二分搜索 01分数规划)

题目:In a certain course, you takentests. If you getaiout ofbiquestions correct on testi, your cumulative average is defined to be.Given your test scores and a positive integerk, determine...

2019-10-21 14:22:14 199

原创 Cow Acrobats POJ - 3045

题目:DescriptionFarmer John's N (1 <= N <= 50,000) cows (numbered 1..N) are planning to run away and join the circus. Their hoofed feet prevent them from tightrope walking and swinging from th...

2019-10-20 21:10:57 120

原创 Drying POJ - 3104(二分搜索)

题目:It is very hard to wash and especially to dry clothes in winter. But Jane is a very smart girl. She is not afraid of this boring process. Jane has decided to use a radiator to make drying faster....

2019-10-20 16:04:33 145

原创 Monthly Expense POJ - 3273 (二分搜索枚举判断)

题目:Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the exact amount of money (1 ≤moneyi≤ 10,000) t...

2019-10-20 12:00:15 129

原创 River Hopscotch POJ - 3258 (二分搜索枚举判断)

题目:Every year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The excitement takes place on a long, straight river with...

2019-10-20 11:19:33 255

原创 Raising Modulo Numbers POJ - 1995

题目:People are different. Some secretly read magazines full of interesting girls' pictures, others create an A-bomb in their cellar, others like using Windows, and some like difficult mathematical ga...

2019-10-19 15:59:54 150

原创 Pseudoprime numbers POJ - 3641

题目:Fermat's theorem states that for any prime numberpand for any integera> 1,ap=a(modp). That is, if we raiseato thepthpower and divide byp, the remainder isa. Some (but not very m...

2019-10-19 10:02:05 141

原创 GCD and LCM Aizu - 0005

题目:Write a program which computes the greatest common divisor (GCD) and the least common multiple (LCM) of givenaandb.InputInput consists of several data sets. Each data set containsaandb...

2019-10-15 15:58:06 128

原创 Out of Hay POJ - 2395 (最小生成树)

题目:The cows have run out of hay, a horrible event that must be remedied immediately. Bessie intends to visit the other farms to survey their hay situation. There are N (2 <= N <= 2,000) farms ...

2019-10-15 15:39:25 167

原创 Save your cats Aizu - 2224 (最大生成树)

题目:Problem C:Nicholas Y. Alford was a cat lover. He had a garden in a village and kept many cats in his garden. The cats were so cute that people in the village also loved them.One day, an evil ...

2019-10-15 14:56:30 1879

原创 Bad Cowtractors POJ - 2377(Kruskal算法+最大生成树)

题目:Bessie has been hired to build a cheap internet network among Farmer John's N (2 <= N <= 1,000) barns that are conveniently numbered 1..N. FJ has already done some surveying, and found M (1...

2019-10-13 21:42:35 222

原创 Agri-Net POJ - 1258

题目:Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs your help, of course.Farmer John ordered a high...

2019-10-13 21:19:20 188

原创 Silver Cow Party POJ - 3268

题目:One cow from each ofNfarms (1 ≤N≤ 1000) conveniently numbered 1..Nis going to attend the big cow party to be held at farm #X(1 ≤X≤N). A total ofM(1 ≤M≤ 100,000) unidirectional (one-wa...

2019-10-13 09:42:08 129

原创 Six Degrees of Cowvin Bacon POJ - 2139

题目:The cows have been making movies lately, so they are ready to play a variant of the famous game "Six Degrees of Kevin Bacon".The game works like this: each cow is considered to be zero degrees ...

2019-10-13 08:59:25 177

原创 Marked Ancestor Aizu - 2170

题目:Problem F:You are given a treeTthat consists ofNnodes. Each node is numbered from 1 toN, and node 1 is always the root node ofT. Consider the following two operations onT:M v: (Mark) M...

2019-10-12 21:30:17 135

原创 Find them, Catch them POJ - 1703

题目:The police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Gang Snake. However, the police first needs to identify wh...

2019-10-12 20:43:41 158

原创 Tudoku POJ - 2918

题目:Tom is a master in several mathematical-theoretical disciplines. He recently founded a research-lab at our university and teaches newcomers like Jim. In the first lesson he explained the game of ...

2019-10-11 16:58:11 158

原创 memcpy()函数和strcpy()函数的使用方法

一.memcpy( )函数头文件:#include<string.h>函数:memcpy(b,a,n);//把数组a中前n为字符复制到数组b中;结果:b数组中存储一个长度为n的字符串,和数组a的前n位相同;注意:因为数组的大小不一定相同,所以在使用memcpy(b,a,n);函数的时候一定要注意n的大小,小心数组b溢出;代码如下:#includ...

2019-10-09 10:33:51 318

原创 memcmp ( ) 函数和strcmp( )函数的使用方法

一.memcmp()函数头文件:#include<string.h>函数:memcmp ( a , b , n );//a和b是两个数组,n 是你想要比较的长度;结果:如果a比b大,返回值大于0;如果a比b小,返回值小于0;如果a等于b,返回值等于0;代码如下:#include<stdio.h>#include<string...

2019-10-09 09:48:48 1287

原创 八皇后 OpenJ_Bailian - 2754

题目:会下国际象棋的人都很清楚:皇后可以在横、竖、斜线上不限步数地吃掉其他棋子。如何将8个皇后放在棋盘上(有8 * 8个方格),使它们谁也不能被吃掉!这就是著名的八皇后问题。对于某个满足要求的8皇后的摆放方法,定义一个皇后串a与之对应,即a=b1b2...b8,其中bi为相应摆法中第i行皇后所处的列数。已经知道8皇后问题一共有92组解(即92个不同的皇后串)。给出一个数b,要求...

2019-10-08 15:44:47 164

原创 abs()和fabs()的区别

一.abs()头文件:#include<stdlib.h>函数:int s = abs ( k ) ;代码如下:#include<stdio.h>#include<stdlib.h>int main(){ int a=-10; double s=-10.1; printf("abs(a)==%d\n",abs(...

2019-10-08 15:32:41 754

原创 Maximum Product UVA - 11059

题目:Given a sequence of integers S = {S1, S2, . . . , Sn}, you should determine what is the value of the maximum positive product involving consecutive terms of S. If you cannot find a positive seque...

2019-10-07 10:41:25 81

原创 Division UVA - 725

题目:Write a program that finds and displays all pairs of 5-digit numbers that between them use the digits 0 through 9 once each, such that the first number divided by the second is equal to an intege...

2019-10-06 21:19:57 136

原创 Knight Moves UVA - 439

题目:A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight moves that visits each square of a given set of n squares on a che...

2019-10-06 20:17:07 115

原创 Printer Queue UVA - 12100

题目:The only printer in the computer science students’ union is experiencing an extremely heavy workload. Sometimes there are a hundred jobs in the printer queue and you may have to wait for hours to...

2019-10-05 18:52:14 131

原创 Foreign Exchange UVA - 10763

题目:Your non-profit organization (iCORE - international Confederation of Revolver Enthusiasts) coordinates a very successful foreign student exchange program. Over the last few years, demand has sky-...

2019-10-05 11:03:47 194

原创 Play on Words UVA - 10129 (欧拉回路)

题目:Some of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve it to open that doors. Because there is no other way to open the doors, the puzzle is very...

2019-10-04 11:48:47 158

原创 Prime Ring Problem UVA - 524

题目:A ring is composed of n (even number) circles as shown in diagram. Put natural numbersinto each circle separately, and the sum of numbers in two adjacent circles should be a prime.Note:the n...

2019-09-29 09:28:29 121

原创 Milking Time POJ - 3616

题目:Bessie is such a hard-working cow. In fact, she is so focused on maximizing her productivity that she decides to schedule her nextN(1 ≤N≤ 1,000,000) hours (conveniently labeled 0..N-1) so tha...

2019-09-28 15:12:03 121

空空如也

空空如也

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

TA关注的人

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