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

目标网站都有哪些内容做网站续费要多少钱

目标网站都有哪些内容,做网站续费要多少钱,郑州网站建设饣汉狮网络,做网站需要几个服务器传送门 文章目录题意#xff1a;思路#xff1a;题意#xff1a; 给你一个n∗nn*nn∗n的矩阵#xff0c;给你n−1n-1n−1个位置#xff0c;这些位置为111#xff0c;其他位置为000#xff0c;操作定义为交换两行或者交换两列#xff0c;让你通过不超过1e51e51e5次操作…传送门 文章目录题意思路题意 给你一个n∗nn*nn∗n的矩阵给你n−1n-1n−1个位置这些位置为111其他位置为000操作定义为交换两行或者交换两列让你通过不超过1e51e51e5次操作将所有为111的位置的都换到主对角线的下面。 思路 题目中说n−1n-1n−1个111的位置那么必定有一列全为000那么我们通过一次操作将这一列换到第nnn列之后在找任意一个有111的一行换到第nnn行让后递归处理(n−1)∗(n−1)(n-1)*(n-1)(n−1)∗(n−1)规模的矩阵即可。 操作次数为2∗n2*n2∗n。 //#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 N2010,mod1e97,INF0x3f3f3f3f; const double eps1e-6;int n; int x[N],y[N],tot; int a[N][N]; struct Node {int op,a,b; }ans[N*N];void dfs(int n) {if(n1) return;for(int i1;in;i)if(!y[i]){swap(y[i],y[n]);ans[tot]{2,i,n};for(int j1;jn;j) swap(a[j][i],a[j][n]);break;}for(int i1;in;i)if(x[i]){swap(x[i],x[n]);ans[tot]{1,i,n};for(int j1;jn;j) swap(a[i][j],a[n][j]),y[j]-a[n][j];break;}dfs(n-1);}int main() { // ios::sync_with_stdio(false); // cin.tie(0);scanf(%d,n);for(int i1;in-1;i){int aa,b; scanf(%d%d,aa,b);x[aa]; y[b];a[aa][b]1;}dfs(n);couttotendl;for(int i1;itot;i) printf(%d %d %d\n,ans[i].op,ans[i].a,ans[i].b);return 0; } /**/
http://www.zqtcl.cn/news/487285/

相关文章:

  • 笔杆子写作网站牡丹江信息网0453免费发布信息
  • 网站建设介绍推广用语解释seo网站推广
  • 加盟企业网站建设目的速卖通下载app
  • 阳江北京网站建设网页设计与网站建设pdf
  • 做考试平台的网站网站之前没备案
  • 网站维护要多久时间北京网站优化哪家好
  • 单页推广网站模版网站建设一个购买链接
  • 湖南门户网站设计公司免费自媒体网站
  • 美食网站建设项目预算域名解析站长工具
  • 网站如何备案工信局学网站开发首先学哪些基础
  • 什么网站利于优化河北省建设局网站材料备案
  • 自学装修设计从哪里入手沈阳百度seo
  • 做jsp网站用哪些软件下载如何利用网站赚钱
  • 注册网站域名需要什么湘潭公司做网站
  • 一个网站如何优化企业资质查询平台
  • 模板网站为什么做不了优化山西网络网站建设销售公司
  • 建设什么网站可以赚钱设计本网站是用什么做的
  • 荆州市网站建设策划师
  • 苏州中国建设银行招聘信息网站中国企业登记网
  • 网站服务器的重要性新闻软文范例大全
  • 茶叶网站建设一般的风格加大志愿服务网站建设
  • 湖州医院网站建设方案网页游戏知乎
  • 以网站建设为开题报告临海门户网站住房和城乡建设规划局
  • 河南省大型项目建设办公室网站wordpress置顶功能
  • 奉化网站建设三合一网站建设多少钱
  • wordpress文章页怎么调用网站图片wordpress菜单锚点定位
  • 网站建设运营合作合同网站建设英文合同
  • wordpress chrome插件开发图片式网站利于做优化吗
  • 如何做好品牌网站建设策划app要有网站做基础
  • 横沥网站建设公司wordpress运行php