最新 最热

Linux学习笔记(四)帮助命令

英文原意:format and display the on-line manual pages

2020-07-15
1

PAT 1025 PAT Ranking (25分) vector + sort

Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run simultaneousl...

2020-07-14
1

PAT1045 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 her favorite order by cutting off those unwant...

2020-07-14
1

PAT 1044 Shopping in Mars (25分) 二分法

Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M). When making the payment...

2020-07-14
1

PAT 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.

2020-07-14
1

PAT1047 Student List for Course (25分)避免运行超时(内存溢出)

Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, you are supposed to output the student...

2020-07-14
1

PAT 1033 To Fill or Not to Fill (25分) 贪心思想

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...

2020-07-14
1

PAT 1036 Boys vs Girls (25分) 比大小而已

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.

2020-07-14
1

PAT 1039 Course List for Student (25分) 使用map(string, vector(int))

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

2020-07-14
1

PAT 1016 Phone Bills (25分) sort() + map 逻辑较为复杂

A long-distance telephone company charges its customers by the following rules:

2020-07-14
1