![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟
Peppermint__
这个作者很懒,什么都没留下…
展开
-
Selecting courses HDU - 3697 贪心 思维
题目: 学生只能每隔5分钟选一次课,并且每次只能选一次课,求最多选多少次课。 分析: 对 0 1 2 3 4 这五个时间段进行枚举, 对于每一个时间,一定要选课程结束时间最早的,这样使得该课程占用可选的的时间点最少。 #include #include #include #include using namespace std; const int N = 1e3+10; s原创 2017-04-28 16:59:11 · 280 阅读 · 0 评论 -
A hard Aoshu Problem HDU - 3699 模拟 map
就是对各种情况进行模拟,dfs实现。一定要注意被除数不可以为0 #include #include #include #include #include using namespace std; map fir; map to; char s1[10],s2[10],s3[10]; char s[10]; int len,len1,len2,len3; int ans;原创 2017-04-28 17:01:51 · 291 阅读 · 0 评论