最新 最热

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 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 1010 Radix (25分) radix取值无限制,二分法提高效率

题目Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The

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

PAT 1015 Reversible Primes (20分) 谜一般的题目,不就是个进制转换+素数判断

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

2020-07-14
1

PAT 1003 Emergency (25分) Dijstra

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

2020-07-14
1

PAT 1007 Maximum Subsequence Sum (25分) 最大连续子序列和

Given a sequence of K integers { N​1​​ , N​2​​ , ..., N​K​​ }. A continuous subsequence is defined to be { Ni​​ , N​i+1​​ , ..., N​j​​ } where 1≤i≤j≤K. The Maxi......

2020-07-14
1

uCOS | 事件

事件是一种实现任务间通信的机制,主要用于实现多任务间的同步,但事件通信只能是事件类型的通信,无数据传输。与信号量不同的是,它可以实现一对多,多对多的同步。即一个任务可以等待多个事件的发生:可以是任意一个事件发生时...

2020-07-10
1