原创 PTA_PAT甲級_1091 Acute Stroke (30分)

One important factor to identify acute stroke (急性腦卒中) is the volume of the stroke core. Given the results of image

原创 PTA_PAT甲級_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 rou

原创 PTA_PAT甲級_1080 Graduate Admission (30分)

It is said that in 2011, there are about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang

原创 PTA_PAT甲級_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 ot

原创 PTA_PAT甲級_1049 Counting Ones (30分)

The task is simple: given any positive integer N, you are supposed to count the total number of 1’s in the decimal

原创 PTA_PAT甲級_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 resid

原创 PTA_PAT甲級_1038 Recover the Smallest Number (30分)

Given a collection of number segments, you are supposed to recover the smallest number from them. For example, give

原创 PTA_PAT甲級_1057 Stack (30分)

Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO).

原创 PTA_PAT甲級_1034 Head of a Gang (30分)

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

原创 PTA_PAT甲級_1045 Favorite Color Stripe (30分)

Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in h

原创 PTA_PAT甲級_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

原创 PTA_PAT甲級_1019 General Palindromic Number (20分)

A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For examp

原创 PTA_PAT甲級_1022 Digital Library (30分)

A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstrac

原创 PTA_PAT甲級_1029 Median (25分)

Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the med

原创 PTA_PAT甲級_1018 Public Bike Management (30分)

There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the