自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

hg_zhh

莫道君行早,更有早行人。全心敲代码,天道自酬勤。

  • 博客(65)
  • 资源 (5)
  • 收藏
  • 关注

原创 1094. The Largest Generation (25)广搜

A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find the generation with the largest population.Input S

2017-07-31 22:25:42 241

原创 1093. Count PAT's (25)

The string APPAPT contains two PAT’s as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed by the 3rd, the 4th, and the 6th characters.Now g

2017-07-31 21:14:32 234

原创 1092. To Buy or Not to Buy (20)

Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of beads. However the owner of the shop would only se

2017-07-31 21:05:25 151

原创 1091. Acute Stroke (30)三维广搜

One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results of image analysis in which the core regions are identified in each MRI slice, your job is to c

2017-07-31 20:56:02 168

原创 1090. Highest Price in Supply Chain (25)

A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)– everyone involved in moving a product from supplier to customer.Starting from one root supplier, everyone on the ch

2017-07-31 11:45:22 206

转载 1089. Insert or Merge (25)

According to Wikipedia:Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion sort removes one element from the input data, fi

2017-07-31 10:46:07 285

原创 1087. All Roads Lead to Rome (30)

Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gaining the most happiness.Input Specification:Each in

2017-07-31 00:06:47 456

原创 1086. Tree Traversals Again (25)

An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbered from 1 to 6) is traversed, the stac

2017-07-29 22:10:19 219

原创 1085. Perfect Sequence (25)

判题程序 Standard <div class='key'> 作者</div><div class='value'> CAO, Peng<br></div> Given a sequence of positive integers and another positive integer p. The sequence

2017-07-29 21:09:40 138

原创 1084. Broken Keyboard (20)

On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on screen.Now given a string that you are supposed to t

2017-07-29 11:51:12 169

原创 1083. List Grades (25)

Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and output those student records of which the grades

2017-07-29 10:55:54 189

原创 1081. Rational Sum (20)

Given N rational numbers in the form “numerator/denominator”, you are supposed to calculate their sum.Input Specification:Each input file contains one test case. Each case starts with a positive inte

2017-07-29 10:01:27 140

原创 1080. Graduate Admission (30)

It is said that in 2013, there were about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would help a lot if you could write a program to automate the admissio

2017-07-28 11:48:01 159

原创 1079. Total Sales of Supply Chain (25)

A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)– everyone involved in moving a product from supplier to customer.Starting from one root supplier, everyone on the ch

2017-07-28 08:52:03 273

原创 1078. Hashing (25)哈希二次碰撞探测

The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. The hash function is defined to be “H(key) = key %

2017-07-27 21:57:42 353

原创 1077. Kuchiguse (20)

The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker’s personality. Such a preference is called “

2017-07-27 20:29:28 143

原创 1076. Forwards on Weibo (30)

Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed with followers relations. When

2017-07-27 11:18:37 174

原创 1074. Reversing Linked List (25)

Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, if K = 3, then you must output 3→2→1→6→5→4; if K

2017-07-27 08:15:41 150

原创 1073. Scientific Notation (20)

Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+-][1-9]”.”[0-9]+E[+-][0-9]+ which means that the in

2017-07-27 07:37:46 206

原创 1072. Gas Station (30)

A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as possible. However it must guarantee that all the hou

2017-07-27 07:31:25 316

原创 1071. Speech Patterns (25)

People often have a preference among synonyms of the same word. For example, some may prefer “the police”, while others may prefer “the cops”. Analyzing such patterns can help to narrow down a speaker’

2017-07-26 00:45:56 275

原创 1070. Mooncake (25)

Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional mooncakes according to the region’s culture. Now

2017-07-25 22:30:05 123

原创 1069. The Black Hole of Numbers (20)

For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by taking

2017-07-25 22:00:36 208

原创 1068. Find More Coins (30)

Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as payments. However

2017-07-25 21:48:41 234

原创 1067. Sort with Swap(0,*) (25)

Given any permutation of the numbers {0, 1, 2,…, N-1}, it is easy to sort them in increasing order. But what if Swap(0, *) is the ONLY operation that is allowed to use? For example, to sort {4, 0, 2,

2017-07-25 20:14:53 136

原创 1065. A+B and C (64bit) (20)

Given three integers A, B and C in [-263, 263], you are supposed to tell whether A+B > C.Input Specification:The first line of the input gives the positive number of test cases, T (<=10). Then T tes

2017-07-25 00:13:23 156

原创 C++ STL——set

set是与集合相关的容器, STL为我们提供了set的实现,在编程题中遇⻅集合问题直接调⽤是 ⼗分⽅便的, set模版类的定义在头⽂件中。 3.1.2 使⽤set 定义⼀个set对象: set s; set ss; set的基本操作: s.begin() // 返回指向第⼀个元素的迭代器 s.clear() // 清除所有元素 s.count() // 返回某个值元素的个数 s.

2017-07-24 23:01:16 226

原创 1063. Set Similarity (25)

Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared by the two sets, and Nt is the total number of distinct numb

2017-07-24 23:00:07 297

原创 1062. Talent and Virtue (25)

About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people’s talent and virtue. According to his theory, a man being outstanding in both talent and virt

2017-07-24 22:03:33 149

原创 1061. Dating (20)

Sherlock Holmes received a note with some strange strings: “Let’s date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm”. It took him only a minute to figure out that those strange strings a

2017-07-24 12:10:09 136

转载 1060. Are They Equal (25)

If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123*105 with simple chopping. Now given the number of significa

2017-07-24 11:29:14 258

原创 1059. Prime Factors (25)

Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 * p2^k2 *…*pm^km.Input Specification:Each input file contains one test case whi

2017-07-24 10:14:54 191

原创 1055. The World's Richest (25)

Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world’s wealthiest people. Now you are supposed to simulate this job, but concentrate only on the peopl

2017-07-23 17:29:32 218

原创 1054. The Dominant Color (20)

Behind the scenes in the computer’s memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color with the largest proportional area is called the d

2017-07-23 14:40:15 249

原创 1051. Pop Sequence (25)

Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, …, N and pop randomly. You are supposed to tell if a given sequence of numbers is a possible pop sequence of th

2017-07-23 09:31:51 211

原创 1050. String Subtraction (20)

Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to calculate S1 - S2 for any given strings. However,

2017-07-22 23:49:43 129

原创 1049. Counting Ones (30)计算1的个数

The task is simple: given any positive integer N, you are supposed to count the total number of 1’s in the decimal form of the integers from 1 to N. For example, given N being 12, there are five 1’s i

2017-07-22 23:36:55 221

原创 1048. Find Coins (25)

Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as payments. However

2017-07-22 10:08:41 179

原创 1047. Student List for Course (25)

Zhejiang University has 40000 students and provides 2500 courses. Now given the registered course list of each student, you are supposed to output the student name lists of all the courses.Input Spec

2017-07-21 22:46:56 198

原创 1046. Shortest Distance (20)

The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.Input Specification:Each input file contains

2017-07-21 21:51:08 189

耶鲁人脸数据集

本资源是耶鲁人脸数据集,本来下载的格式乱了,鄙人手动修改的

2019-04-03

上海交大ACM模板

此模板为上海交通大学ACM模板。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

2017-10-23

OpenGL配置文件及方法

本压缩包,包含了OpenGL的安装方法,及相应的文件

2017-08-23

ACM解题模板

本模板适用于C/C++ACMer,对于基本的题目类型归纳总结

2017-06-03

matlab综合编程

MATLAB5.X程序设计语言.pdf、 MATLAB5.X入门与提高.pdf、 MATLAB5手册.pdf、

2016-09-30

空空如也

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

TA关注的人

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