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

2018年8月16日

poj 2155 B - Matrix 二维树状数组
摘要: #include #include #include #include using namespace std; const int maxn=1050; int n; int c[maxn][maxn]; int lowbit(int x) { return x&(-x); } void update(int x,int y) { for(int i = x; i; i -... 阅读全文
posted @ 2018-08-16 16:54 Andromeda_Galaxy 阅读(172) 评论(0) 推荐(0)
 
hdu 1556 A - Color the ball 其他做法
摘要: #include using namespace std; const int maxn=1e6+10; int c[maxn]; int n; int main() { while(1) { cin>>n; if(n==0) break; memset(c,0,sizeof(c)); for(int i=1;i>a... 阅读全文
posted @ 2018-08-16 15:27 Andromeda_Galaxy 阅读(180) 评论(0) 推荐(0)
 
hdu 1556 A - Color the ball 数状数组做法
摘要: #include<bits/stdc++.h> using namespace std; const int maxn=1e6+10; int n; int c[maxn]; int lowbit(int x) { return x&(-x); } void update(int num,int v 阅读全文
posted @ 2018-08-16 15:18 Andromeda_Galaxy 阅读(194) 评论(0) 推荐(0)
 
#366 A-C
摘要: A. Hulk 题意是给你一个n 输出一个英文字符串,找下规律就发现 当(i!=n&&i%2==1) 输出的是 I hate that (注意大写) 当(i!=n&&i%2==0) 输出的是 I love that (注意大写) 当(i==n&&i%2==1) 输出的是 I love it (注意大 阅读全文
posted @ 2018-08-16 14:52 Andromeda_Galaxy 阅读(196) 评论(0) 推荐(0)
 
 

公告


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