- 博客(121)
- 资源 (11)
- 收藏
- 关注
原创 QT5项目创建教程(为什么没有GUI应用?创建完成后为什么只有.pro文件?)
一、打开QT Creator二、单机左上角文件->新建文件或项目三、项目中选择建立Qt Widgets Application问题解决:为什么没有GUI应用?回答:在新版的QT中Qt Widgets Application其实就是GUI应用!!!四、更改项目名称和项目位置(最好是自己建一个文件夹定下来)五、选择qmake六、基类改为QDialog七、选择select...
2020-02-29 22:24:54 3530 2
原创 PAT_Advanced Level_1036 Boys vs Girls(C++_模拟)
This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students.Input Specification:Each input file contains one tes...
2020-02-29 17:30:01 129
原创 PAT_Advanced Level_1035 Password(C++_模拟)
To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish 1 (one) from l (L ...
2020-02-29 17:06:00 155
原创 PAT_Advanced Level_1034 Head of a Gang (C++_dfs_邻接矩阵)
One way that the police finds the head of a gang is to check people’s phone calls. If there is a phone call between A and B, we say that A and B is related. The weight of a relation is defined to be t...
2020-02-29 16:38:10 172
原创 PAT_Advanced Level_1033 To Fill or Not to Fill(C++_模拟_贪心)
With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas stations on the way from time to time. Different ga...
2020-02-28 21:09:27 217
原创 PAT_Advanced Level_1032 Sharing(C++_模拟链表)
To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same sublist if they share the same suffix. For example,...
2020-02-28 13:23:47 186
原创 PAT_Advanced Level_1031 Hello World for U(C++_模拟)
Given any string of N (≥5) characters, you are asked to form the characters into the shape of U. For example, helloworld can be printed as:h de ll rlowoThat is, the characters must be printed...
2020-02-27 21:03:42 186
原创 PAT_Advanced Level_1030 Travel Plan(C++_链式向前星_dfs_回溯)
A traveler’s map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a program to help a traveler to decide the shortest path b...
2020-02-27 15:04:21 165
原创 PAT_Advanced Level_1029 Median(C++_归并)
Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1 = { 11, 12, 13, 14 } is 12, and the median of S2 = { 9, 10, 15, 16, 17 } is...
2020-02-27 13:56:07 187 1
原创 PAT_Advanced Level_1028 List Sorting(C++_快排_输入输出优化)
Excel can sort records according to any column. Now you are supposed to imitate this function.Input Specification:Each input file contains one test case. For each case, the first line contains two i...
2020-02-26 20:34:58 152
原创 PAT_Advanced Level_1027 Colors in Mars(C++_模拟)
People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, where the first 2 digits are for Red, the middle 2 dig...
2020-02-26 20:11:22 142
原创 PAT_Advanced Level_1025 PAT Ranking(C++_快排)
Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run simultaneously in several places, and the ranklists w...
2020-02-26 13:06:18 201
原创 PAT_Advanced Level_1024 Palindromic Number(C++_高精)
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers...
2020-02-25 21:13:00 311
原创 PAT_Advanced Level_1023 Have Fun with Numbers(C++_高精)
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens to be another 9-digit number con...
2020-02-25 20:36:04 175
原创 PAT_Advanced Level_1022 Digital Library(C++_STL)
A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years. Each book is assigned an unique 7-digit number a...
2020-02-25 20:05:46 170
原创 PAT_Advanced Level_1021 Deepest Root(C++_链式向前星_DFS_STL)
A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a highest tree. Such a root ...
2020-02-24 23:42:22 151
原创 PAT_Advanced Level_1020 Tree Traversals(C++_二叉树遍历)
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the cor...
2020-02-24 21:52:15 188
转载 GitHub 新手详细教程
转载于:https://blog.csdn.net/hanani_jia/article/details/77950594真的超级棒的保姆级教程,忍不住转载!!! 这篇文章是我自己写的关于GitHub的内容,从我刚听到这个直到设置成功每一步都有详细的步骤来解释,其中有一些截图或者代码来自于网上。在开始前先跟大家说一下这篇博客是来介绍桌面版GitHub的使用的,如果只是简单的想使用G...
2020-02-23 23:05:37 252
原创 PAT _Advanced Level_1019 General Palindromic Number(C++_模拟)
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers...
2020-02-23 15:36:15 139
原创 PAT_Advanced Level_1018 Public Bike Management(C++_DFS_回溯_链式向前星)
There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station and return it to any other stations in the ...
2020-02-23 14:49:53 175
原创 PAT_Advanced Level_1017 Queueing at Bank(C++_模拟)
Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All the customers have to wait in line behind the yellow li...
2020-02-22 21:59:14 163
原创 PAT_Advanced Level_1016 Phone Bills(C++_快排_模拟)
A long-distance telephone company charges its customers by the following rules:Making a long-distance call costs a certain amount per minute, depending on the time of day when the call is made. When ...
2020-02-22 19:45:07 194
原创 PAT_Advanced Level_1015 Reversible Primes(C++_数论_字符串)
A reversible prime in any number system is a prime whose “reverse” in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its reverse 37 is also a pr...
2020-02-22 13:42:05 177
原创 PAT _Advanced Level_1014 Waiting in Line(C++_模拟)
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to wait in line are:The space ...
2020-02-21 23:57:27 177
原创 PAT_Advanced Level_1013 Battle Over Cities(C++_链式向前星_暴力枚举)
It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we nee...
2020-02-21 18:46:33 220
原创 PAT _Advanced Level_1012 The Best Rank(C++_快排)
To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Algrbra), and E - Eng...
2020-02-21 13:08:58 131
原创 PAT _Advanced Level_1011 World Cup Betting(C++_模拟)
With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the World Cup trophy in South Africa. Si...
2020-02-20 18:32:25 153
原创 PAT_Advanced Level_1010 Radix(C++_二分)
Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a binary number.Now for any pair of positive integ...
2020-02-20 17:53:08 172
原创 PAT_Advanced Level_1009 Product of Polynomials(C++_模拟_数论)
This time, you are supposed to find A×B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the informati...
2020-02-20 13:20:28 151
原创 PAT_Advanced Level_1008 Elevator(C++_模拟)
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 sec...
2020-02-20 12:46:25 118
原创 PAT_Advanced Level_1007 Maximum Subsequence Sum(C++_最大子序列)
Given a sequence of K integers { N1, N2, …, NK }. A continuous subsequence is defined to be { Ni, Ni+1, …, Nj } where 1≤i≤j≤K. The Maximum Subsequence is the continuous subsequence w...
2020-02-20 12:16:18 157
原创 PAT_Advanced Level_1006 Sign In and Sign Out(C++_贪心)
At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in’s and out’s, you...
2020-02-19 21:32:11 134
原创 PAT_Advanced Level_1005 Spell It Right(C++_模拟)
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input file contains one test case. Each ...
2020-02-19 20:35:46 157
原创 PAT_Advanced Level_1004 Counting Leaves(C++_dfs_树状结构)
A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Specification:Each input file contains one test case. Each case starts w...
2020-02-19 19:01:59 183
原创 树状数组详解!(C++_单点/区间查询_单点/区间修改)
先把这张著名的树状数组结构图摆在最前面,接下来我们就以这张图讲起! 首先图中的A数组就是所谓的原数组,也就是普通的数组形态,C则是我们今天要说的树状数组(可以看出一个数的形状,但其实和树没多大关系)从图中可以明显看到以下几个式子:C[1]=A[1];C[1]=A[1];C[1]=A[1];C[2]=C[1]...
2020-02-19 15:55:40 922 2
原创 P4779 【模板】单源最短路径(标准版)(C++_Dijkstra_堆优化_链式向前星)
题目背景2018 年 7 月 19 日,某位同学在 NOI Day 1 T1 归程 一题里非常熟练地使用了一个广为人知的算法求最短路。然后呢?100→60;100 \rightarrow 60;100→60;Ag→Cu;\text{Ag} \rightarrow \text{Cu};Ag→Cu;最终,他因此没能与理想的大学达成契约。小 F 衷心祝愿大家不再重蹈覆辙。题目描述给定一个...
2020-02-18 22:36:57 388
原创 Codeforces Round #621 (Div. 1 + Div. 2)_B. Cow and Friend(C++_数论)
Bessie has way too many friends because she is everyone’s favorite cow! Her new friend Rabbit is trying to hop over so they can play!More specifically, he wants to get from (0,0) to (x,0) by making m...
2020-02-18 12:49:42 476 1
原创 Codeforces Round #621 (Div. 1 + Div. 2)_A. Cow and Haybales(C++_模拟)
The USA Construction Operation (USACO) recently ordered Farmer John to arrange a row of n haybale piles on the farm. The i-th pile contains ai haybales.However, Farmer John has just left for vacation...
2020-02-18 12:04:32 454
原创 PAT_Advanced Level_1003 Emergency(C++_SPFA_链式向前星_DFS_记忆化搜索)
As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the l...
2020-02-17 21:56:59 181
原创 PAT_Advanced Level_1002 A+B for Polynomials(C++_模拟)
This time, you are supposed to find A+B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the informati...
2020-02-17 19:33:40 135
企业员工管理系统源码!
2022-07-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人