浙大 编程能力测试 的甲级题目 第 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 prime because its reverse 37 is also a prime.
Now given any two positive integers N (< 105) and D (1 < D <= 10), you are supposed to tell if N is a reversible prime with radix D. (2015-06-03, Dev C++, 1KB, 下载3次)
浙大 编程能力测试 的甲级题目 第 1012. The Best Rank (25) 最人性的成绩排序
To uate 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 Algebra), and E- English. At the mean time, we encourage students by emphasizing on their best ranks that is, among the four ranks with respect to the three courses and the average grade, we print the best rank for each student. (2015-06-03, Dev C++, 1KB, 下载3次)
浙大 编程能力测试 的甲级题目 第 1017. Queueing at Bank (25) 服务窗口排队问题
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 line, until it is his/her turn to be served and there is a window available. It is assumed that no window can be occupied by a single customer for more than 1 hour.
Now given the arriving time T and the processing time P of each customer, you are supposed to tell the average waiting time of all the customers. (2015-06-03, Dev C++, 1KB, 下载3次)