自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 关于笔记本电脑屏幕插上电源后一直闪烁而拔掉电源就不闪的问题

电脑出现这个问题已经一个多月了,关于这个问题我询问了电脑卖家,他说可能是电脑用久了或电脑周围有大功率电器使用造成干扰,也在网上查询了相关问题,都无法解决,今天在网上发现一个方法:先拔掉电源,然后在电脑上找到关于屏幕亮度的设置后再插上电源,最后把屏幕亮度拉到最大就可以了,我试了一下,没想到还真可以,好神奇。

2024-01-06 19:43:18 2313 2

原创 运行renren-fast后台管理系统 报错:java:找不到符号

renren-fast:默认maven版本是 1.18.4.将版本调高为1.18.14即可解决

2022-05-10 23:03:42 463

原创 解决:java.sql.SQLException: Access denied for user ‘‘@‘localhost‘ (using password: YES)

在浏览器输入地址后,idea出现java.sql.SQLException: Access denied for user ‘’@‘localhost’ (using password: YES)类似的报错,但是navicat可以正常连接服务器上docker安装的mysql。在网上找了许多资料,大多都是关于用户权限不够需要修改权限的。最后找了好久,在一篇文章的评论区找到了答案;我将username写成了name(看了几遍配置文件都没有发现)而且貌似以前也有这样的小错误,特此记录下来!...

2022-05-09 15:31:42 2006

原创 springboot项目启动不报错但是无法访问地址

在学习SpringCloud时,其中一个服务启动没有报错,但是无法访问地址,也没有注册信息到Nacos中,在网上找了许多答案都不行,最后找到一篇关于spring-boot-starter-web依赖缺少的文章,去查看自己服务的依赖,果然缺少依赖,加上spring-boot-starter-web依赖后成功解决参考文章:https://www.cnblogs.com/jpfss/p/10765636.html...

2022-05-06 18:34:29 1267

原创 application so that it contains a single, compatible version of com.google.gson.GsonBuilder 报错解决办法

启动eureka-server模块报错(Gson包冲突):Description:An attempt was made to call a method that does not exist. The attempt was made from the following location: java.lang.invoke.MethodHandleNatives.resolve(Native Method)The following method did not exist:

2022-05-03 23:13:27 483 1

原创 Vue跨域问题

跨域出现:Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, weapp, https.在网上查了许多资料都没有用,最后找到一个说是将请求的域名不是以http开头的,于是在请求的域名和接收请求的域名前都加上了http://,最后问题成功解决。...

2021-08-12 16:56:30 142

原创 hdu 2612

问题链接:https://cn.vjudge.net/problem/15717/origin用bfs记录两个人到每个KFC的距离之和,取最小值即可#include<iostream>#include<cstdio>#include<cstring>#include<string>#include<queue>#includ...

2019-08-04 17:10:52 109

原创 poj 2251

链接:https://cn.vjudge.net/problem/15203/originBFS入门经典题#include<iostream>#include<cstdio>#include<cstring>#include<string>#include<queue>using namespace std;struct ...

2019-08-04 12:34:42 102

原创 poj 1321

问题:https://cn.vjudge.net/problem/15202/origindfs入门简单题AC代码:#include<iostream>#include<cstring>#include<string>using namespace std;typedef long long ll;int n,m,res,ans;char p[...

2019-08-04 10:05:34 99

原创 HDU 1233最小生成树 prim算法

某省调查乡村交通状况,得到的统计表中列出了任意两村庄间的距离。省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可),并要求铺设的公路总长度为最小。请计算最小的公路总长度。Input测试输入包含若干测试用例。每个测试用例的第1行给出村庄数目N ( < 100 );随后的N(N-1)/2行对应村庄间的距离,每行给出一对正整数...

2019-04-14 12:15:51 151

原创 hdu 1002 大数相加

I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.InputThe first line of the input contains an integer T(1<=T<=20) which means the num...

2019-04-06 23:54:51 136

原创 BZOJ 2456 求众数

给你一个n个数的数列,其中某个数出现了超过n div 2次即众数,请你找出那个数。Input第1行一个正整数n。第2行n个正整数用空格隔开。Output一行一个正整数表示那个众数。Sample Input53 2 3 1 3Sample Output3这题有点意思,内存限制只有1M,网上普遍都是这种方法#include<cstdio>using namespa...

2019-04-01 22:33:23 134

原创 矩阵快速幂+斐波拉契数列

Problem Description众所周知,斐波那契数列F(1)=1,F(2)=1,F(n)=F(n-1)+F(n-2),(n>2);现在令A[i]=F[i]*2^i。Input多组测试数据。每组测试数据为一个n。(n<=1e12)Output输出A[n]的值。结果对1e9+7取模。Sample Input1234Sample Output2416...

2019-03-19 17:07:10 168

原创 寒假训练3J

POJ - 1611Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmission to others, the best strat...

2019-01-28 21:20:34 148

原创 寒假训练10H

HDU - 1541Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars that are not ...

2019-01-28 13:03:09 153

原创 寒假训练10G

Today 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 friends know each other, a...

2019-01-28 10:13:49 156

原创 寒假训练5H

定义一个二维数组:int maze[5][5] = {0, 1, 0, 0, 0,0, 1, 0, 1, 0,0, 0, 0, 0, 0,0, 1, 1, 1, 0,0, 0, 0, 1, 0,};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。Input一个5 × 5的二维数组,表示一个迷...

2019-01-28 09:29:28 118

原创 寒假训练4I

One of the first users of BIT’s new supercomputer was Chip Diller. He extended his exploration ofpowers of 3 to go from 0 to 333 and he explored taking various sums of those numbers.“This supercompu...

2019-01-25 21:01:20 188

原创 寒假训练8I

今年暑假杭电ACM集训队第一次组成女生队,其中有一队叫RPG,但做为集训队成员之一的野骆驼竟然不知道RPG三个人具体是谁谁。RPG给他机会让他猜猜,第一次猜:R是公主,P是草儿,G是月野兔;第二次猜:R是草儿,P是月野兔,G是公主;第三次猜:R是草儿,P是公主,G是月野兔;…可怜的野骆驼第六次终于把RPG分清楚了。由于RPG的带动,做ACM的女生越来越多,我们的野骆驼想都知道她们,可现在有N多人,...

2019-01-24 21:47:18 131

原创 寒假训练5H

定义一个二维数组:int maze[5][5] = {0, 1, 0, 0, 0,0, 1, 0, 1, 0,0, 0, 0, 0, 0,0, 1, 1, 1, 0,0, 0, 0, 1, 0,};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。Input一个5 × 5的二维数组,表示一个迷...

2019-01-23 23:12:41 114

原创 寒假训练7J

小兔的叔叔从外面旅游回来给她带来了一个礼物,小兔高兴地跑回自己的房间,拆开一看是一个棋盘,小兔有所失望。不过没过几天发现了棋盘的好玩之处。从起点(0,0)走到终点(n,n)的最短路径数是C(2n,n),现在小兔又想如果不穿越对角线(但可接触对角线上的格点),这样的路径数有多少?小兔想了很长时间都没想出来,现在想请你帮助小兔解决这个问题,对于你来说应该不难吧!Input每次输入一个数n(1&lt...

2019-01-23 20:22:39 105

原创 寒假训练7I

国庆期间,省城HZ刚刚举行了一场盛大的集体婚礼,为了使婚礼进行的丰富一些,司仪临时想出了有一个有意思的节目,叫做"考新郎",具体的操作是这样的:首先,给每位新娘打扮得几乎一模一样,并盖上大大的红盖头随机坐成一排;然后,让各位新郎寻找自己的新娘.每人只准找一个,并且不允许多人找一个.最后,揭开盖头,如果找错了对象就要当众跪搓衣板…看来做新郎也不是容易的事情…假设一共有N对新婚夫妇,其中有M...

2019-01-23 19:43:33 92

原创 寒假训练6G

The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divides th...

2019-01-22 15:41:39 231

原创 寒假训练5I

要求(A/B)%9973,但由于A很大,我们只给出n(n=A%9973)(我们给定的A必能被B整除,且gcd(B,9973) = 1)。Input数据的第一行是一个T,表示有T组数据。每组数据有两个数n(0 &lt;= n &lt; 9973)和B(1 &lt;= B &lt;= 10^9)。Output对应每组数据输出(A/B)%9973。题目分析:该题用扩展欧几里得算法较容易得出,...

2019-01-21 21:10:43 100

原创 寒假训练2B

Little Petya very much likes gifts. Recently he has received a new laptop as a New Year gift from his mother. He immediately decided to give it to somebody else as what can be more pleasant than givin...

2019-01-18 19:11:00 231 1

原创 寒假训练2J

给定三个正整数A,B和C(A,B,C&lt;=1000000),求A^B mod C的结果.Input输入数据首先包含一个正整数N,表示测试实例的个数,然后是N行数据,每行包括三个正整数A,B,C。Output对每个测试实例请输出计算后的结果,每个实例的输出占一行。问题分析:典型的快速幂求模AC代码:#include&lt;iostream&gt;using namespace s...

2019-01-18 19:04:01 246

原创 寒假训练2D

Petya studies in a school and he adores Maths. His class has been studying arithmetic expressions. On the last class the teacher wrote three positive integers a, b, c on the blackboard. The task was t...

2019-01-18 16:17:30 228

原创 寒假训练2A

The translation from the Berland language into the Birland language is not an easy task. Those languages are very similar: a berlandish word differs from a birlandish word with the same meaning a litt...

2019-01-18 16:08:47 103

原创 寒假训练1C

It seems like the year of 2013 came only yesterday. Do you know a curious fact? The year of 2013 is the first year after the old 1987 with only distinct digits.Now you are suggested to solve the foll...

2019-01-17 18:06:26 383

原创 寒假训练1B

A guy named Vasya attends the final grade of a high school. One day Vasya decided to watch a match of his favorite hockey team. And, as the boy loves hockey very much, even more than physics, he forgo...

2019-01-17 18:02:13 120

原创 寒假训练1A

InputThe first line contains two integers n and t (1 ≤ n, t ≤ 50), which represent the number of children in the queue and the time after which the queue will transform into the arrangement you need ...

2019-01-17 17:53:14 98

原创 第三次周赛C题

Holidays have finished. Thanks to the help of the hacker Leha, Noora managed to enter the university of her dreams which is located in a town Pavlopolis. It’s well known that universities provide stud...

2018-12-26 16:38:59 211

原创 第三次周赛B题

Vanya got n cubes. He decided to build a pyramid from them. Vanya wants to build the pyramid as follows: the top level of the pyramid must consist of 1 cube, the second level must consist of 1 + 2 = 3...

2018-12-26 16:30:21 163

原创 第三次周赛A题

Devu is a renowned classical singer. He is invited to many big functions/festivals. Recently he was invited to “All World Classical Singing Festival”. Other than Devu, comedian Churu was also invited....

2018-12-26 16:18:44 227

原创 第二期训练题5

问题链接:http://acm.hdu.edu.cn/showproblem.php?pid=2010问题分析:输入两个三位数,从第一个数开始判断是否符合水仙花数的条件(一个三位数等于它个位,十位和百位的立方的和),如果满足,则依次输出水仙花数,并用空格分隔开;用一个辅助变量s来判断是否存在,如果不存在s=0(存在的话s&gt;0),就输出no,#include&lt;iostream&gt;...

2018-12-14 18:13:29 149

原创 第二期训练题3

问题分析:因为是两个16进制的数相加,且数是小于15位的,换算成10进制数的话将会很大,所以要用long long类型,而且因为16进制负数在计算机中以补码形式存在,所以要取负数的相反数,并在前面加负号。而且hex的输出结果默认为小写,根据题目要求要加上uppercaseAC通过的代码如下:#include&amp;lt;iostream&amp;gt;#include&amp;lt;iomanip&amp;gt;usi...

2018-12-14 17:47:00 141

原创 第二期训练题2

问题分析:由图形规律,在高为n的空心三角形中,从第一行到第i行(i&amp;lt;n),字符都是关于j=n对称的(j表示每行的的j个),且左边的满足i+j=n+1,右边的满足j-i=n-1.因为题目要求每行末无空格,从每行的第一个到n+i-1个,满足条件的用字符填充,其余用空格填充;最后一行全部用字符填充。AC通过的代码如下:#include&amp;lt;iostream&amp;gt;using namespa...

2018-12-14 17:31:30 124

原创 第二期训练题1

问题分析:该题只需按照题目要求输入数据,并将每组数据的第一个作为最小值,再将这个最小值逐一与输入的数据比较大小,如果输入的数据小于最小值,则将输入的数据代替最小值,最后得到这组数据的最小值。#include&amp;lt;iostream&amp;gt;using namespace std;int main(){ int t,n,m,a,b,min1,min2,j,k,i; cin &amp;gt;&amp;gt;...

2018-12-14 17:12:43 171

原创 第一次周赛#H题

问题链接:https://vjudge.net/problem/CodeForces-515A问题分析:从原点到点(a,b)的最短步数即s=|a|+|b|,如果步数小于s,则肯定不能到达目标;如果步数大于s,假设先走s步到达目标,则(步数-s)则为剩下的步数,只要剩下的步数为偶数,就可以回到目标;否则不能。#include&amp;lt;iostream&amp;gt;using namespace std...

2018-12-09 14:33:34 160

原创 第一次周赛#A题

问题链接:https://vjudge.net/problem/CodeForces-4A问题分析:输入的正整数w如果能够拆分成两个偶数,则输出yes;否则输出no;即当正整数w是大于2的偶数时,输出yes;否则输出no。#include&amp;lt;iostream&amp;gt;using namespace std;int main(){ int w; cin &amp;gt;&amp;gt; w; if...

2018-12-09 14:20:25 146

空空如也

空空如也

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

TA关注的人

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