- 博客(79)
- 收藏
- 关注
原创 Qt 启动程序失败,路径或者权限错误? 个人临时解决方法
个人解决方法:重新配置一下Qt的计算机环境变量(如果之前没有的,就添加一个。如果之前有的,就多添加一个关于Qt的bin路径,不用管有没有用。如果就一个bin目录的,就删除重新添加一下,这个我还没有试过,不知道行不行)。然后重启电脑(一定是重启。关机再开机我不知道行不行),之后对工程重新构建,之后 运行。(这种方法,可能不适合每一个人,因为我的qt之前是能运行的,然后莫名其妙的报错了,我想可能是因为我更改了,计算机名和计算机组名,但是实在没办法改回去,不然另一个软件就没法用了。在这里奉劝各位一句:计.
2020-07-09 17:03:41
3975
原创 关于安阳工学院ACM实验室纳新问题解答
关于安阳工学院ACM实验室纳新问题解答 首先欢迎来到安阳工学院计算机学院,相信很多新生刚来到大学,面对各种各样的实验室,学生会纳新都是一头雾水,对心仪的实验室或学生会都会有很多疑问,想去加入,又担心自己不能满足纳新要求,或者担心加入进去之后发现和自己想象的有所出入等各种各样的问题而踌躇不定。下面就来详细的介绍一下我们ACM实验室和解答一些新生可能会遇到的一些问题。ACM实验室 A...
2019-09-17 15:13:55
2858
原创 find the longest of the shortest HDU - 1595
题意:有一城市,这个城市有n个地点和m条连接他们的路,点的编号是从1到n,小X住在1,他想去n。但是最近正在维修公路,也就是说这m条路有且只有一条是坏的,但是小X不知道是哪一条,一条很关键的路坏了路程就会增加很多,所以小X想知道从1到n*最*坏*情*况*下的路程。你能帮助他吗?Input每组数据开头有一个N和M.1 ≤ N ≤ 1000, 1 ≤ M ≤ N*(N-1)/2....
2019-04-03 19:55:18
306
原创 Help Hanzo LightOJ - 1197
问题:Amakusa, the evil spiritual leader has captured the beautiful princess Nakururu. The reason behind this is he had a little problem with Hanzo Hattori, the best ninja and the love of Nakururu. Aft...
2018-09-02 21:34:09
232
原创 Mysterious Bacteria LightOJ - 1220
问题:Dr. Mob has just discovered a Deathly Bacteria. He named it RC-01. RC-01 has a very strange reproduction system. RC-01 lives exactly x days. Now RC-01 produces exactly p new deadly Bacteria where...
2018-09-02 21:07:15
180
原创 Harmonic Number LightOJ - 1234
问题:In mathematics, the nth harmonic number is the sum of the reciprocals of the first n natural numbers:In this problem, you are given n, you have to find Hn.InputInput starts with an inte...
2018-09-02 20:46:06
145
原创 Harmonic Number (II) LightOJ - 1245
问题:I was trying to solve problem '1234 - Harmonic Number', I wrote the following codelong long H( int n ) { long long res = 0; for( int i = 1; i <= n; i++ ) res = res + n / i; ...
2018-09-02 20:26:31
201
原创 Goldbach`s Conjecture LightOJ - 1259
Goldbach's conjecture is one of the oldest unsolved problems in number theory and in all of mathematics. It states:Every even integer, greater than 2, can be expressed as the sum of two primes [1]....
2018-09-02 20:09:51
181
原创 Robot Rapping Results Report CodeForces - 645D
问题:While Farmer John rebuilds his farm in an unfamiliar portion of Bovinia, Bessie is out trying some alternative jobs. In her new gig as a reporter, Bessie needs to know about programming competiti...
2018-08-26 21:01:54
158
原创 Super Jumping! Jumping! Jumping! HDU - 1087
问题:Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you now. The ...
2018-08-26 19:32:40
404
原创 超级密码 HDU - 1226
问题:Ignatius花了一个星期的时间终于找到了传说中的宝藏,宝藏被放在一个房间里,房间的门用密码锁起来了,在门旁边的墙上有一些关于密码的提示信息: 密码是一个C进制的数,并且只能由给定的M个数字构成,同时密码是一个给定十进制整数N(0<=N<=5000)的正整数倍(如果存在多个满足条件的数,那么最小的那个就是密码),如果这样的密码存在,那么当你输入它以后门将打开,如果不存在这...
2018-08-26 17:19:02
201
原创 Anniversary party POJ - 2342
问题:There is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical structure of employees. It means that the supervisor relation forms...
2018-08-26 16:59:05
155
原创 S-Trees UVA - 712
问题连接:https://odzkskevi.qnssl.com/9ea91eae4e13725a84fcd7f2a8440e1a?v=1534958307题意:给你一个满二叉树,第一行的n表示树的深度,第二行...好像没啥用,下一行是顺序给出最底层节点的值,向左插入节点路径用0表示,向右插入路径用1表示,然后d组询问,给出路径,让你输出路径的值。思路:采用先序遍历,用map容器保...
2018-08-26 16:40:35
175
原创 度度熊学队列 HDU - 6375
问题:度度熊正在学习双端队列,他对其翻转和合并产生了很大的兴趣。 初始时有 NN 个空的双端队列(编号为 11 到 NN ),你要支持度度熊的 QQ 次操作。 ①11 uu ww valval 在编号为 uu 的队列里加入一个权值为 valval 的元素。(w=0w=0 表示加在最前面,w=1w=1 表示加在最后面)。 ②22 uu ww 询问编号为 uu 的队列里的某个元素并删除它。(...
2018-08-26 16:06:36
166
原创 The Falling Leaves UVA - 699
问题连接:https://odzkskevi.qnssl.com/c6558ab5e65b2703fade6a22971fa34a?v=1535080290代码:#define N 200#include<stdio.h>#include<stdlib.h>#include<string.h>#include<iostream>#...
2018-08-26 16:00:52
253
原创 Tree UVA - 548
问题连接:https://odzkskevi.qnssl.com/630fcbec9466ed05dd8215b60e322fde?v=1535019630题意:这个题是给你先序和后序遍历,让你去找从根节点到叶子节点之和的最小路径,然后把这个路径的叶子节点输出出来,如果有多个把叶子节点最小的输出出来。思路:这个题是多组输入,还没有数据结束条件所以还要当成字符串去处理,然后就是通过先...
2018-08-25 10:59:04
147
原创 Not so Mobile UVA - 839
问题连接:https://odzkskevi.qnssl.com/a2ea37834edbbaa8afe720b6f12e7707?v=1534682801题意:给你一个树状天平,让你判断天平是否处于平衡状态,数据输入:wl,cl(左枝的重量和力臂),wr,cr(右枝的重量和力臂),wl=0时说明左枝存在孩子节点,wr=0时说明右枝存在孩子节点。思路:在递归函数中输入数据,采用先序...
2018-08-25 10:37:43
177
原创 The order of a Tree HDU - 3999
问题:As we know,the shape of a binary search tree is greatly related to the order of keys we insert. To be precisely: 1. insert a key k to a empty tree, then the tree become a tree with only one no...
2018-08-25 09:49:52
166
原创 Trees on the level HDU - 1622
问题:Trees are fundamental in many branches of computer science. Current state-of-the art parallel computers such as Thinking Machines' CM-5 are based on fat trees. Quad- and octal-trees are fundament...
2018-08-25 09:39:51
164
原创 二叉搜索树 HDU - 3791
问题:判断两序列是否为同一二叉搜索树序列Input开始一个数n,(1<=n<=20) 表示有n个需要判断,n= 0 的时候输入结束。 接下去一行是一个序列,序列长度小于10,包含(0~9)的数字,没有重复数字,根据这个序列可以构造出一颗二叉搜索树。 接下去的n行有n个序列,每个序列格式跟第一个序列一样,请判断这两个序列是否能组成同一颗二叉搜索树。Output如果...
2018-08-25 08:47:44
266
原创 Tree Recovery POJ - 2255
问题:Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital letters in the nodes. This is an example of one of her c...
2018-08-19 21:23:10
93
原创 Functions again CodeForces - 789C
问题:Something happened in Uzhlyandia again... There are riots on the streets... Famous Uzhlyandian superheroes Shean the Sheep and Stas the Giraffe were called in order to save the situation. Upon th...
2018-08-19 21:03:03
203
原创 Military Problem CodeForces - 1006E
问题:In this problem you will have to help Berland army with organizing their command delivery system.There are nn officers in Berland army. The first officer is the commander of the army, and he do...
2018-08-19 20:40:47
236
原创 Mr. Kitayuta's Colorful Graph
问题:Mr. Kitayuta has just bought an undirected graph consisting of n vertices and m edges. The vertices of the graph are numbered from 1 to n. Each edge, namely edge i, has a color ci, connecting ver...
2018-08-19 20:13:03
176
原创 Elven Postman HDU - 5444
问题:Elves are very peculiar creatures. As we all know, they can live for a very long time and their magical prowess are not something to be taken lightly. Also, they live on trees. However, there is ...
2018-08-19 19:56:26
367
原创 Fox And Names CodeForces - 510C
问题:Fox Ciel is going to publish a paper on FOCS (Foxes Operated Computer Systems, pronounce: "Fox"). She heard a rumor: the authors list on the paper is always sorted in the lexicographical order....
2018-08-17 16:19:02
163
原创 Drainage Ditches HDU - 1532
问题:Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhile and takes quite a long time to regrow. Thu...
2018-08-16 21:01:11
152
原创 Parity 51Nod - 1204
问题:你的朋友写下一串包含1和0的串让你猜,你可以从中选择一个连续的子串(例如其中的第3到第5个数字)问他,该子串中包含了奇数个还是偶数个1,他会回答你的问题,然后你可以继续提问......你怀疑朋友的答案可能有错,或说同他之前的答案相互矛盾,例如:1 - 2 奇数,3 - 4 奇数,那么可以确定1 - 4 一定是偶数,如果你的朋友回答是奇数,就产生了矛盾。给出所有你朋友的答案,请你找出第一个...
2018-08-16 20:53:06
138
原创 Ice_cream's world I HDU - 2120
问题:ice_cream's world is a rich country, it has many fertile lands. Today, the queen of ice_cream wants award land to diligent ACMers. So there are some watchtowers are set up, and wall between watch...
2018-08-16 20:26:31
162
原创 Slim Span POJ - 3522
问题:Given an undirected weighted graph G, you should find one of spanning trees specified as follows.The graph G is an ordered pair (V, E), where V is a set of vertices {v1, v2, …, vn} and E is a s...
2018-08-16 20:19:13
115
原创 Minimum Transport Cost HDU - 1385
问题:These are N cities in Spring country. Between each pair of cities there may be one transportation track or none. Now there is some cargo that should be delivered from one city to another. The tra...
2018-08-16 20:04:29
119
原创 食物链 POJ - 1182
问题:动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。有人用两种说法对这N个动物所构成的食物链关系进行描述: 第一种说法是"1 X Y",表示X和Y是同类。 第二种说法是"2 X Y",表示X吃Y。 此人对N个动物,用上述两种说法,一句接一句地说...
2018-08-14 19:19:58
427
原创 Subway POJ - 2502
问题:You have just moved from a quiet Waterloo neighbourhood to a big, noisy city. Instead of getting to ride your bike to school every day, you now get to walk and take the subway. Because you don't ...
2018-08-14 18:02:26
205
原创 Wormholes POJ - 3259
问题:While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path that delivers you to its destination at a time t...
2018-08-14 16:49:55
189
原创 Play on Words POJ - 1386
问题: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...
2018-08-14 15:59:53
163
原创 确定比赛名次 HDU - 1285
问题:有N个比赛队(1<=N<=500),编号依次为1,2,3,。。。。,N进行比赛,比赛结束后,裁判委员会要将所有参赛队伍从前往后依次排名,但现在裁判委员会不能直接获得每个队的比赛成绩,只知道每场比赛的结果,即P1赢P2,用P1,P2表示,排名时P1在P2之前。现在请你编程序确定排名。 Input输入有若干组,每组中的第一行为二个数N(1<=N<=500),M...
2018-08-14 12:29:42
155
原创 六度分离 HDU - 1869
问题:1967年,美国著名的社会学家斯坦利·米尔格兰姆提出了一个名为“小世界现象(small world phenomenon)”的著名假说,大意是说,任何2个素不相识的人中间最多只隔着6个人,即只用6个人就可以将他们联系在一起,因此他的理论也被称为“六度分离”理论(six degrees of separation)。虽然米尔格兰姆的理论屡屡应验,一直也有很多社会学家对其兴趣浓厚,但是在30...
2018-08-14 12:22:55
165
原创 最短路径问题 HDU - 3790
问题:给你n个点,m条无向边,每条边都有长度d和花费p,给你起点s终点t,要求输出起点到终点的最短距离及其花费,如果最短距离有多条路线,则输出花费最少的。Input输入n,m,点的编号是1~n,然后是m行,每行4个数 a,b,d,p,表示a和b之间有一条边,且其长度为d,花费为p。最后一行是两个数 s,t;起点s,终点。n和m为0时输入结束。 (1<n<=1000, 0&...
2018-08-14 12:10:28
261
原创 数组的最大代价 51Nod - 1270
问题:数组A包含N个元素A1, A2......AN。数组B包含N个元素B1, B2......BN。并且数组A中的每一个元素Ai,都满足1 <= Ai <= Bi。数组A的代价定义如下: (公式表示所有两个相邻元素的差的绝对值之和)给出数组B,计算可能的最大代价S。Input第1行:1个数N,表示数组的长度(1 <= N <= 50000...
2018-08-09 14:06:30
177
原创 Is It A Tree? POJ - 1308
问题:A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between nodes satisfying the following properties.Th...
2018-08-09 13:39:19
189
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人