摘要: 思路 先将 N 个 电视节目 排序 根据 结束时间 ,结束的早的 排在前面然后 弄 K个标记 记录 结束时间 然后 遍历一下 每次 如果能插入的话 插入到 结束时间最小的那个 队列里面去然后 每次插入后 更新答案AC代码#include #include #inc... 阅读全文
posted @ 2018-03-17 18:56 Dup4 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 思路 找单词 第一个 单词 是小写 然后 后面的单词 第一位 都是大写 刚开始 初始化 ans = 1 然后 往后遍历 碰到 大写的 更新答案 AC代码#include #include #include #include #include #include... 阅读全文
posted @ 2018-03-17 17:25 Dup4 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 分析给出两个串 从末尾开始对齐 每位对齐后,每一位 遍历如果 第一串 的那位 #include #include #include #include #include #include #include #include #include #include #incl... 阅读全文
posted @ 2018-03-17 17:23 Dup4 阅读(147) 评论(0) 推荐(0) 编辑