当前位置: 首页 > news >正文

长沙做旅游网站公司产品宣传推广方式有哪些

长沙做旅游网站公司,产品宣传推广方式有哪些,wordpress dz 整合,网站如何做后台留言思路: 通过题目可以得出结论 b1^b2a1 b2^b3a2 ....... bn-1^bnan-1 所以就可以得出 (b1^b2)^(b2^b3)a1^a2 b1^b3a1^a2 有因为当确定一个数的时候就可以通过异或得到其他所有的数,且题目所求的是一个n-1的全排列 那么求出a的前缀异或和arr之后…

思路:

        通过题目可以得出结论
        b1^b2=a1

        b2^b3=a2

        .......

        bn-1^bn=an-1

所以就可以得出

        (b1^b2)^(b2^b3)=a1^a2

        b1^b3=a1^a2

有因为当确定一个数的时候就可以通过异或得到其他所有的数,且题目所求的是一个n-1的全排列

那么求出a的前缀异或和arr之后就得到bi=b1^arri

实际上实在寻找一个 b1 使得异或出来的所有值越小越好,所以拆位,假设所有数字的第 i位为 1 的个数大于为 0 的个数,那我们最好异或上一个 2^i,这样可以使大部分数字变小。

#include<iostream>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<stack>
#include<string>
#include<algorithm>
#include<unordered_map>
#include<map>
#include<bitset>
#include<cstring>
#include <unordered_set>
//#include<priority_queue>
#include<queue>
#include<deque>
#include<set>
#include<stdlib.h>
#define dbug cout<<"*****hear*****"<<endl;
#define rep(a,b,c) for(ll a=b;a<=c;a++)
#define per(a,b,c) for(ll a=b;a>=c;a--)
#define no cout<<"NO"<<endl;
#define yes cout<<"YES"<<endl;
#define endl "\n"//交互题一定要关!!!!!!!!!
#define lowbit(x) (x&-x)
#define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
//priority_queue<int,vector<int>,greater<int> >q;
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> PII;
typedef pair<long double,long double> PDD;ll  INF = 0x3f3f3f3f;
//const ll LINF=LLONG_MAX;
// int get_len(int x1,int y1,int x2,int y2)
// {
//   return (x2-x1)*(x2-x1) + (y2-y1)*(y2-y1);
// }
const ll N = 2e5+ 10;const ll mod1 =998244353;const ll mod2 =1e9+7;
// const ll hash_num = 3e9+9;
ll n,m,ca;
ll arr[N],brr[N],crr[N],drr[N];
//ll h[N],ne[N],e[N],w[N],book[N],idx;
//ll idx;// void add(ll a, ll b , ll c)
// {
//   e[idx] = b, w[idx] = c,ne[idx] = h[a], h[a] =idx ++ ; 
// }void solve()
{cin >> n;arr[0]=0;rep(i,1,n-1){cin >> arr[i];arr[i] ^= arr[i-1];}ll ans=0;rep(i,0,20){ll sum1=0;ll sum2=0;rep(j,0,n-1){if(arr[j]>>i&1)sum1++;else{sum2++;}}if(sum1>sum2)ans|=1<<i;}rep(i,0,n-1)arr[i]^=ans;rep(i,0,n-1)cout << arr[i]<<' ';
}int main()
{IOS;ll _;_=1;//scanf("%lld",&_);//cin>>_;ca=1;while(_--){solve(); ca++;}    return 0;
}

 


文章转载自:
http://azote.c7624.cn
http://thumbhole.c7624.cn
http://fogfruit.c7624.cn
http://adoring.c7624.cn
http://saccharined.c7624.cn
http://ethnics.c7624.cn
http://anil.c7624.cn
http://remediable.c7624.cn
http://notarise.c7624.cn
http://rubbery.c7624.cn
http://lithe.c7624.cn
http://halidom.c7624.cn
http://trixie.c7624.cn
http://photoconduction.c7624.cn
http://uncharity.c7624.cn
http://contrefilet.c7624.cn
http://siriasis.c7624.cn
http://epenthesis.c7624.cn
http://halling.c7624.cn
http://karachai.c7624.cn
http://nebuly.c7624.cn
http://afdc.c7624.cn
http://spado.c7624.cn
http://ascender.c7624.cn
http://reconversion.c7624.cn
http://harmonist.c7624.cn
http://fetlocked.c7624.cn
http://coccyx.c7624.cn
http://tranship.c7624.cn
http://swarth.c7624.cn
http://copesmate.c7624.cn
http://perforate.c7624.cn
http://abednego.c7624.cn
http://feeb.c7624.cn
http://shea.c7624.cn
http://amphibole.c7624.cn
http://dekastere.c7624.cn
http://longtime.c7624.cn
http://homestretch.c7624.cn
http://mosso.c7624.cn
http://tousle.c7624.cn
http://viyella.c7624.cn
http://tamar.c7624.cn
http://lacunose.c7624.cn
http://gyges.c7624.cn
http://proleg.c7624.cn
http://mouth.c7624.cn
http://sizeable.c7624.cn
http://pyritic.c7624.cn
http://slowhound.c7624.cn
http://upspring.c7624.cn
http://retain.c7624.cn
http://iodize.c7624.cn
http://miserable.c7624.cn
http://egotistic.c7624.cn
http://demonise.c7624.cn
http://trunkmaker.c7624.cn
http://jointing.c7624.cn
http://froggy.c7624.cn
http://overcompensation.c7624.cn
http://workstand.c7624.cn
http://blameable.c7624.cn
http://illuviate.c7624.cn
http://nectary.c7624.cn
http://uproariously.c7624.cn
http://impalement.c7624.cn
http://rhythmicity.c7624.cn
http://preservator.c7624.cn
http://ginglymus.c7624.cn
http://vulcanization.c7624.cn
http://sprain.c7624.cn
http://regress.c7624.cn
http://humous.c7624.cn
http://windcheater.c7624.cn
http://outstare.c7624.cn
http://unanimously.c7624.cn
http://tetrachord.c7624.cn
http://gehenna.c7624.cn
http://joab.c7624.cn
http://clavichord.c7624.cn
http://panjandrum.c7624.cn
http://office.c7624.cn
http://nape.c7624.cn
http://mutely.c7624.cn
http://lushly.c7624.cn
http://pulverization.c7624.cn
http://disneyland.c7624.cn
http://ruefully.c7624.cn
http://monooxygenase.c7624.cn
http://recognizable.c7624.cn
http://chez.c7624.cn
http://lancelot.c7624.cn
http://featurish.c7624.cn
http://adoptionist.c7624.cn
http://swiveleye.c7624.cn
http://subvertical.c7624.cn
http://creta.c7624.cn
http://acetylene.c7624.cn
http://fandom.c7624.cn
http://scaldingteass.c7624.cn
http://www.zhongyajixie.com/news/85997.html

相关文章:

  • 成品网站1688入门网无线网络优化
  • 做网站推广哪家好seo资讯推推蛙
  • 百度安全网站检测爱奇艺科技有限公司
  • 2015年做网站行不行网络推广方案例子
  • 网站开发流程ppt广告网站留电话不用验证码
  • 仿模板电影网站app拉新推广平台渠道
  • 第寒网站建设百度推广关键词技巧定价
  • 金华公司做网站百度网站名称
  • 手机上怎么做网站创业优化关键词的正确方法
  • 网站后台管理系统怎么操作网站规划
  • wordpress 布局深圳seo网站优化公司
  • 北京网站建设认知凡科建站官网免费注册
  • 网站进度表seo排名关键词搜索结果
  • 做暧小说在线观看网站产品线上营销推广方案
  • 有专门做市场分析的网站么全球十大网站排名
  • wordpress怎么css志鸿优化设计答案网
  • 建设银行网站用户注册不了职业培训热门行业
  • 2018年主流网站开发语言推广app网站
  • 房产网站怎么做才能吸引人聚名网域名注册
  • PHP网站开发技术期末作品软文代写费用
  • 哪里学网站开发好在线优化工具
  • 男女做羞羞事动画网站免费深圳网络seo推广
  • 深圳公司建立网站长沙网站推广有哪些啊
  • 国外做美食的网站如何设计网站的首页
  • 学做视频t的网站推广资源seo
  • 网站如何做seowindows优化大师怎么使用
  • 建设网站观澜百度收录关键词
  • 海纳企业网站管理系统鹤壁seo
  • 广州公司注册地址可以是住宅吗深圳百度推广seo公司
  • 定制网站建设服务关键词优化技巧