![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟
文章平均质量分 78
阿_波_
这个作者很懒,什么都没留下…
展开
-
几种进程调度算法模拟C++实现
先到先服务(FCFS)原创 2018-06-05 10:13:59 · 15742 阅读 · 7 评论 -
模拟_1060 Are They Equal (25 分)
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. No...原创 2018-12-19 19:43:21 · 310 阅读 · 1 评论 -
模拟_1014 Waiting in Line (30 分)
1014 Waiting in Line (30 分) Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to...原创 2018-12-02 14:49:39 · 279 阅读 · 0 评论 -
模拟_1012 The Best Rank (25 分)
1012 The Best Rank (25 分) To evaluate 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 L...原创 2018-11-25 10:30:30 · 163 阅读 · 0 评论 -
并查集模拟_1034 Head of a Gang (30 分)
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 A and B, we say that A and B is related. The weight of a...原创 2018-11-25 09:42:16 · 878 阅读 · 1 评论 -
1007 Maximum Subsequence Sum (25 分)
1007 Maximum Subsequence Sum (25 分) Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1≤i≤j≤K. The Maximum Su...原创 2018-11-24 22:16:58 · 309 阅读 · 0 评论 -
1078 Hashing (25 分)
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 ...原创 2018-11-24 20:20:39 · 245 阅读 · 0 评论 -
1132 Cut Integer (20 分)
1132 Cut Integer (20 分) Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 167334, we have A = 167 and B...原创 2018-11-25 16:52:30 · 182 阅读 · 0 评论 -
1025 PAT Ranking (25 分)
1025 PAT Ranking (25 分) Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run simultaneously in several pl...原创 2018-11-19 17:21:11 · 103 阅读 · 0 评论 -
1036 Boys vs Girls
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. Input Specification: Eac...原创 2018-11-23 19:23:10 · 149 阅读 · 0 评论 -
1051 Pop Sequence
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 ...原创 2018-11-23 18:48:10 · 95 阅读 · 0 评论 -
模拟_1080 Graduate Admission (30 分)
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 Province. It would help a lot if you could write a p...原创 2019-01-12 22:29:48 · 377 阅读 · 0 评论