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

成都网站建设公司是什么wordpress 下载安装

成都网站建设公司是什么,wordpress 下载安装,怎么在电脑安装wordpress,wordpress怎么更改端口登陆2025.2.15——1400 A 1400 B 1400 C 1400 ------------------------------------------------ 思维位运算思维/数学 A 单独对一个数进行分析什么情况下会有贡献。在前面且所有比其小的数,都必须是最小前缀。两个树状数组记录小的个数和最小前缀的个数。遍历维护…

2025.2.15——1400


A 1400

B 1400

C 1400

------------------------------------------------

  • 思维+位运算+思维/数学


A

  1. 单独对一个数进行分析什么情况下会有贡献。
  2. 在前面且所有比其小的数,都必须是最小前缀。
  3. 两个树状数组记录小的个数和最小前缀的个数。遍历维护信息可以做到不使用树状数组(思维点)。

B

  1. 模拟发现可以获得所有区间异或和。但没有证明只能获得所有区间异或和。猜一发。
  2. 数组元素种类最多只有256个,同类相消,前缀异或和最多也只有256种。

C

  1. 分类讨论+思维

------------------------代码------------------------

A

#include <bits/stdc++.h>
#define int long long //
#define endl '\n'     // attention: interactive/debug
#define el cout << endl
using namespace std;
#define bug(BUG) cout << "bug:# " << (BUG) << endl
#define bug2(BUG1, BUG2) cout << "bug:# " << (BUG1) << " " << (BUG2) << endl
#define bug3(BUG1, BUG2, BUG3) cout << "bug:# " << (BUG1) << ' ' << (BUG2) << ' ' << (BUG3) << endl
#define bugv(VEC)               \{                           \for (auto Vec : VEC)    \cout << Vec << ' '; \el;                     \}void _();
signed main()
{ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);cout << fixed << setprecision(10);int T = 1;cin >> T;while (T--)_();return 0;
}void _()
{int n;cin >> n;vector<int> a(n + 1);for (int i = 1; i <= n; i++)cin >> a[i];int res = 0;int lim = 1e12, mn = 1e12;for (int i = 1; i <= n; i++){res += mn < a[i] && a[i] < lim; // 有选择 并且 在合法区间mn = min(mn, a[i]);if (mn - a[i])lim = min(lim, a[i]);}cout << res << '\n';
}
// // 树状数组  快速求前缀和
// // 维护差分数组(区间加)  位置(统计个数) ...
// struct Tree
// {
//     int n;
//     vector<int> tr;
//     Tree(int n1)
//     {
//         n = n1 + 2;
//         tr.assign(n + 2, 0);
//     }
//     void add(int x, int c) // 加点
//     {
//         for (int i = x; i <= n; i += i & -i)
//             tr[i] += c;
//     }
//     int ask(int x) // 前缀查询
//     {
//         int res = 0;
//         for (int i = x; i; i -= i & -i)
//             res += tr[i];
//         return res;
//     }
//     int ask(int l, int r) // 区间查询
//     {
//         if (l > r)
//             return 0ll;
//         return ask(r) - ask(l - 1);
//     }
// }; //    Tree tr(n);  tr.add(x,c)// void _()
// {
//     int n;
//     cin >> n;
//     vector<int> a(n + 1);
//     for (int i = 1; i <= n; i++)
//         cin >> a[i];
//     Tree cnt(n), pre_cnt(n);//     int pre_mn = 1e12;
//     int res = 0;
//     for (int i = 1; i <= n; i++)
//     {
//         if (cnt.ask(1, a[i]) && cnt.ask(1, a[i]) == pre_cnt.ask(1, a[i]))
//             res++;
//         pre_mn = min(pre_mn, a[i]);
//         cnt.add(a[i], 1);
//         if (pre_mn == a[i])
//             pre_cnt.add(a[i], 1);
//     }
//     cout << res << '\n';
// }

B

#include <bits/stdc++.h>
#define int long long
using namespace std;
#define bug(BUG) cout << "bug:# " << (BUG) << endl
#define bug2(BUG1, BUG2) cout << "bug:# " << (BUG1) << " " << (BUG2) << endl
#define bug3(BUG1, BUG2, BUG3) cout << "bug:# " << (BUG1) << ' ' << (BUG2) << ' ' << (BUG3) << endl
#define bugv(VEC)               \{                           \for (auto Vec : VEC)    \cout << Vec << ' '; \cout << '\n';           \}void _();
signed main()
{ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);cout << fixed << setprecision(10);int T = 1;cin >> T;while (T--)_();return 0;
}void _()
{// srand(time(0));int n;cin >> n;vector<int> a(n + 1);for (int i = 1; i <= n; i++)// a[i] = rand() % 256;cin >> a[i];// bugv(a);set<int> s;s.insert(0);int pre = 0, res = 0;for (int i = 1; i <= n; i++){pre ^= a[i];for (auto x : s){res = max(res, pre ^ x);}s.insert(pre);}cout << res << '\n';
}

C

#include <bits/stdc++.h>
#define int long long
using namespace std;
#define bug(BUG) cout << "bug:# " << (BUG) << endl
#define bug2(BUG1, BUG2) cout << "bug:# " << (BUG1) << " " << (BUG2) << endl
#define bug3(BUG1, BUG2, BUG3) cout << "bug:# " << (BUG1) << ' ' << (BUG2) << ' ' << (BUG3) << endl
#define bugv(VEC)               \{                           \for (auto Vec : VEC)    \cout << Vec << ' '; \cout << '\n';           \}void _();
signed main()
{ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);cout << fixed << setprecision(10);int T = 1;cin >> T;while (T--)_();return 0;
}void _()
{int mx = -20;int n;cin >> n;vector<int> a(n + 1);for (int i = 1; i <= n; i++){cin >> a[i];mx = max(mx, a[i]);}vector<pair<int, int>> res;auto add = [&](int i, int j){a[i] += a[j];res.push_back({i, j});};if (mx < 1){for (int i = n - 1; i; i--){add(i, i + 1);}}else{int id = 1;for (int i = 1; i <= n; i++){if (a[i] == mx){id = i;break;}}int t = 10;while (t--){add(id, id);}add(1, id);for (int i = 2; i <= n; i++){add(i, i - 1);add(i, i - 1);}}// bool f = 1;// for (int i = 2; i <= n; i++)// {//     if (a[i] - a[i - 1] < 0)//     {//         f = 0;//     }// }// bug(f);cout << res.size() << '\n';for (auto [i, j] : res){cout << i << ' ' << j << '\n';}// bug(20ll << 44);// bugv(a);
}


文章转载自:

http://OnqEvvf8.pLkrL.cn
http://nzAzIEFq.pLkrL.cn
http://1LYMHmVt.pLkrL.cn
http://4cswk55K.pLkrL.cn
http://Pg9tAYeB.pLkrL.cn
http://rZeeyf86.pLkrL.cn
http://IIvyBX7g.pLkrL.cn
http://oCP7lhZu.pLkrL.cn
http://4r0kSheT.pLkrL.cn
http://wKdCJYYk.pLkrL.cn
http://tLYfH1LG.pLkrL.cn
http://TK9i346g.pLkrL.cn
http://L5XBROL4.pLkrL.cn
http://fYotLNsy.pLkrL.cn
http://hPcG5ekF.pLkrL.cn
http://qbv22pE7.pLkrL.cn
http://hepnSdeA.pLkrL.cn
http://OpLhJ6H2.pLkrL.cn
http://Kg84EAOM.pLkrL.cn
http://JSLVIX3l.pLkrL.cn
http://fF6HOeaO.pLkrL.cn
http://K2MZ9rfw.pLkrL.cn
http://cbxyBMwp.pLkrL.cn
http://zOnr53ox.pLkrL.cn
http://Vw6ZBJM7.pLkrL.cn
http://m9bSw42i.pLkrL.cn
http://Q4zAiUgq.pLkrL.cn
http://JXO6sXNa.pLkrL.cn
http://xzv2f9iS.pLkrL.cn
http://9ArVqxA3.pLkrL.cn
http://www.dtcms.com/wzjs/756821.html

相关文章:

  • 公司建网站会计分录重庆seo务
  • 聊城建网站哪家好中国建设管理信息网站
  • 合肥做网站的的公司百度搜索链接入口
  • 网站在哪里找宿城网站建设
  • 网站空间备案要多久网站设计的流程是什么
  • 个人网站平台手机跳转网站建设
  • 包头建站购买已备案域名
  • 深圳市住建设局网站网站建设加数据库
  • 石家庄建设厅网站首页大学生平面设计作品集
  • 唐山网站建设优化公共场所建设网站
  • 网站建设元素如何叠加适合个人做的跨境电商平台
  • 郑州中原区建设局网站网站建设推广入什么费用
  • 网站建设机构怎么做网站像淘宝这样的
  • 企业网站销售广州网站优化电话
  • 注册网站用什么邮箱网页制作图片大小设置
  • 手机网站模板演示广告设计在哪里学
  • 邯山区建设局网站手机商城系统总结
  • 河南网站建设设计价格网站安全体系建设方案
  • app软件网站开发网站建设技术参数
  • 青岛网站设计建议i青岛博采建设银行官方网站登
  • 网站防止采集龙岩小程序app
  • 建一个鲜花买卖网站多少钱网站建设规模设想
  • 皋兰网站建设平台临沂网站建设对实体企业的重要性
  • 网站做ppt模板下载地址河南网站制作公司哪家好
  • 万盛经开区建设局官方网站自己做的网站怎么接数据库
  • 用html5做的音乐网站手工制作火箭模型
  • 南通建设信息网站新余网站开发
  • 微信公众号网站开发本地调试wordpress配合七牛云
  • 谷歌网站建设代理html5开发工具有哪些
  • 青海省住房和建设厅网站首页厦网站建设培训学校