发表评论取消回复
相关阅读
相关 PAT(甲级)1049 Counting Ones (30point(s))
题目题目链接思路题目大意:给出一个数n,找出大小在[0,n]中,且含有数字1的数字个数;从后往前遍历每一位数字,当前遍历的位置 i 将整个数字分为三部分,i 的左边称为l...
相关 PAT (Advanced Level) Practice 1139 First Contact (30分)
其实代码就不用看了,我写的很菜。主要是看思路,相信大家不会说一点思路没有,大体的代码都编的出来,但是可能漏掉了要点。 下面列举题干的坑: (1)题目中并没有说A和B是朋友
相关 PAT (Advanced Level) Practice 1026 Table Tennis (30分)
这题有点坑,主要是题意理解上,编码都比较简单。 先说明下题意,一个球馆有n个桌子从1到N编号,其中有k台vip桌子。随之,用户也有普通和vip之分。每次用户来时给其分配编号
相关 PAT甲级(Advanced Level) Cars on Campus (30)
思路: (1)将vector先按plate\_number排序,若相同则按时间大小排序,这样可以使一个plate\_number的记录按时间顺序排在一起 (2) 遍历vec
相关 PAT (Advanced Level) Practice 1076 Forwards on Weibo
BFS遍历+记录layer,比较简单... include <iostream> include <stdio.h> include <queue>
相关 PAT (Advanced Level)——1004 Counting Leaves (30分)
A family hierarchy is usually presented by a pedigree tree. Your job is to count those f
相关 【PAT (Advanced Level) Practice】1147 Heaps (30 分)
1147 Heaps (30 分) In computer science, a heap is a specialized tree-based data structu
相关 【PAT (Advanced Level) Practice】PAT (Advanced Level) Practice
1006 Sign In and Sign Out (25 分) At the beginning of every day, the first person who s
相关 1095. Cars on Campus (30)
Zhejiang University has 6 campuses and a lot of gates. From each gate we can collect the
相关 PAT (Advanced Level) 1008 Elevator
1008 Elevator (20 分) The highest building in our city has only one elevator. A request
还没有评论,来说两句吧...