• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
asdflkj
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2014年9月21日

hdu 5038 Grade 水
摘要: 用map,也可以用数组,少了个特判WA了一发。#include #include #include #include #include #include #include using namespace std;const int maxn=1000005;int n;int a[maxn];int... 阅读全文
posted @ 2014-09-21 19:21 asdflkj 阅读(176) 评论(0) 推荐(0)
 
hdu 5023 A Corrupt Mayor's Performance Art (线段树)
摘要: 把求和操作改为或操作,就可以了。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define lson l,m,rt>1;27 build(lson);28 build(rson);29 up(r... 阅读全文
posted @ 2014-09-21 10:22 asdflkj 阅读(170) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3