• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Hug_Sea
博客园    首页    新随笔    联系   管理    订阅  订阅
2012年5月10日
2012-05-10
摘要: 晚上回来的路上、 仰望苍穹,夜空很美、 墨蓝星空、 朵朵白云、 在星空与白云之间,颗颗繁星、 真有感觉~ 又是一天,充实~ 阅读全文
posted @ 2012-05-10 22:53 Hug_Sea 阅读(104) 评论(0) 推荐(0)
2746 Problem F: Actualist - 离散化
摘要: 题意:区间染色,求染色次数大于等于k的长度。思路:因为n的范围比较小,直接离散化。----经典好题!!题目链接:http://acm.jlu.edu.cn/joj/showproblem.php?pid=2746例:View Code 1 #include <cstdio> 2 #include <cstring> 3 #include <cmath> 4 #include <string> 5 #include <algorithm> 6 #include <iostream> 7 #include <map> 阅读全文
posted @ 2012-05-10 19:40 Hug_Sea 阅读(121) 评论(0) 推荐(0)
map-排序
摘要: 突然间发现,Map中的元素是自动按key升序排序的。附代码:View Code 1 #include <map> 2 #include <iostream> 3 using namespace std; 4 5 int main( ) 6 { 7 // freopen("data.in","r",stdin); 8 // freopen("data.out","w",stdout); 9 10 map <int, int> m1; 11 map <int, int>: 阅读全文
posted @ 2012-05-10 17:14 Hug_Sea 阅读(139) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3