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

学网站建设软件开发长沙做企业网站推广的公司

学网站建设软件开发,长沙做企业网站推广的公司,常平网站,国内网站建设联系电话传送门 文章目录题意#xff1a;思路#xff1a;题意#xff1a; 给你d,modd,modd,mod#xff0c;让你求能构造出如下序列aaa的个数模modmodmod#xff1a; 思路#xff1a; 首先可以发现aaa的长度不能超过log2dlog_2dlog2​d#xff0c;因为如果存在两个aaa的二进制…传送门 文章目录题意思路题意 给你d,modd,modd,mod让你求能构造出如下序列aaa的个数模modmodmod 思路 首先可以发现aaa的长度不能超过log2dlog_2dlog2​d因为如果存在两个aaa的二进制位数相同的话那么最高位异或之后一定会变成0那么bbb一定小于之前的某个bbb所以我们就看每个二进制位选或者不选来组合出来答案即可比如当前二进制位是iii那么他的方案就是(1(i1))−(1i)1(1(i1))-(1i)1(1(i1))−(1i)1要注意到最后一位二进制的时候需要特判一下n−(1i)2n-(1i)2n−(1i)2累乘起来就好辣。 // Problem: D. Dreamoon Likes Sequences // Contest: Codeforces - Codeforces Round #631 (Div. 2) - Thanks, Denis aramis Shitov! // URL: https://codeforces.com/contest/1330/problem/D // Memory Limit: 256 MB // Time Limit: 1000 ms // // Powered by CP Editor (https://cpeditor.org)//#pragma GCC optimize(Ofast,no-stack-protector,unroll-loops,fast-math) //#pragma GCC target(sse,sse2,sse3,ssse3,sse4.1,sse4.2,avx,avx2,popcnt,tunenative) //#pragma GCC optimize(2) #includecstdio #includeiostream #includestring #includecstring #includemap #includecmath #includecctype #includevector #includeset #includequeue #includealgorithm #includesstream #includectime #includecstdlib #define X first #define Y second #define L (u1) #define R (u1|1) #define pb push_back #define mk make_pair #define Mid (tr[u].ltr[u].r1) #define Len(u) (tr[u].r-tr[u].l1) #define random(a,b) ((a)rand()%((b)-(a)1)) #define db puts(---) using namespace std;//void rd_cre() { freopen(d://dp//data.txt,w,stdout); srand(time(NULL)); } //void rd_ac() { freopen(d://dp//data.txt,r,stdin); freopen(d://dp//AC.txt,w,stdout); } //void rd_wa() { freopen(d://dp//data.txt,r,stdin); freopen(d://dp//WA.txt,w,stdout); }typedef long long LL; typedef unsigned long long ULL; typedef pairint,int PII;const int N1000010,INF0x3f3f3f3f; const double eps1e-6;int n,mod; LL ans1;int main() { // ios::sync_with_stdio(false); // cin.tie(0);int _; cin_;while(_--) {cinnmod;int d(int)log2(n);ans1%mod;for(int i0;id;i) {if(id) ans*((1ll(i1))-(1lli)1)%mod,ans%mod;else ans*(n-(1lli)2)%mod,ans%mod;}ans-1; ansmod; ans%mod;coutansendl;}return 0; } /**/
http://www.yutouwan.com/news/364768/

相关文章:

  • 国外html5网站建设研究现状旅游网站的建设现状
  • 常用网站建设软件有哪些网站开发 技术问题
  • 网站开发开发语言做视频比较好的理财网站有哪些
  • 龙华做网站公司好的网站设计制作
  • 网站营销 优势wordpress显示不同的页脚
  • 烟台seo网站推广营销公司是什么意思
  • 跨境自建站模板oa软件
  • 专业做网站建设公司怎么样seo推广软件代理
  • 做asp.net网站参考文献电商网站开发源码
  • 人工智能 网站建设武昌做网站多少钱
  • 中国建设银行官方网站 认证wordpress woocommerce 插件
  • 铁路网站建设论文链接提交工具的推荐词
  • 做哪些网站好可以做点赞的网站赚钱
  • 模拟网站开发免费做字体的网站
  • 服装公司网站结构添加网站备案号链接
  • wordpress 数据库 nginxseo托管服务
  • 广告设计模板网站红色系 网站
  • 做网店去哪个网站货源好html可以做网站后台吗
  • 个人网站如何加入百度联盟网站添加新闻栏怎么做
  • 网页制作与网站建设的题陈铭生个人资料简介
  • 网站如何减少404跳转金融行业做网站
  • 医疗网站织梦wordpress的商城网站制作公司
  • 模板自助建站网站制作php企业网站demo
  • 徐州专业网站建设上海新闻坊
  • 湖南网站建设seoapp软件开发培训班
  • 网站百度排名查询网站的收费窗口怎么做
  • 建站网站的图片织梦网站首页自动更新
  • 重庆展示型网站制作厦门网站建设团队
  • 卧龙区微网站建设酷炫给公司网站欣赏
  • 可以做ppt的网站有哪些集团网站建设基础方案