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

wordpress怎么设置搜索显示页面seo论坛

wordpress怎么设置搜索显示页面,seo论坛,做网站找哪家好要钱吗,福建省政府网站建设【洛谷】AT_abc371_c [ABC371C] Make Isomorphic 的题解 洛谷传送门 AT传送门 题解 抽象题目,抽象翻译,可能是我太菜了,根本没看懂题目,后面是听大佬讲题才发现,这不就是一题全排列暴力题吗。谔谔,真的…

【洛谷】AT_abc371_c [ABC371C] Make Isomorphic 的题解

洛谷传送门

AT传送门

题解

抽象题目,抽象翻译,可能是我太菜了,根本没看懂题目,后面是听大佬讲题才发现,这不就是一题全排列暴力题吗。谔谔,真的我谔谔!!!怪不得评橙!!???!!!

首先先看题目意思:

给定简单无向图 G G G H H H ,每个图都有 N N N 个顶点。 G G G M M M 条边; H H H M M M 条边。

  • H H H i i i j j j 间无边,则添加边;

  • H H H i i i j j j 间有边,则删除边。

求使 G G G H H H 同构的最小总成本。

题目非常的抽象,刚开始在研究半天同构到底是什么意思qaq

题目数据范围很小,只有 $ n \le 8$。所以直接暴力全排列取出最小值即可。时间复杂度 O ( n ! ) O(n!) O(n!)脑抽想了快一个小时,还是大佬教的代码

代码

#include <bits/stdc++.h>
#define lowbit(x) x & (-x)
#define endl "\n"
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
namespace fastIO {inline int read() {register int x = 0, f = 1;register char c = getchar();while (c < '0' || c > '9') {if(c == '-') f = -1;c = getchar();}while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();return x * f;}inline void write(int x) {if(x < 0) putchar('-'), x = -x;if(x > 9) write(x / 10);putchar(x % 10 + '0');return;}
}
using namespace fastIO;
int n, m1, m2, G[15][15], H[15][15], edge[15][15], p[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
ll ans = 0x3f3f3f3f3f3f;
int main() {//freopen(".in","r",stdin);//freopen(".out","w",stdout);n = read(), m1 = read();for(int i = 1; i <= m1; i ++) {int u, v;u = read(), v = read();G[u][v] = G[v][u] = 1;}m2 = read();for(int i = 1; i <= m2; i ++) {int u, v;u = read(), v = read();H[u][v] = H[v][u] = 1;}for(int i = 1; i < n; i ++) {for(int j = i + 1; j <= n; j ++) {edge[i][j] = read();}}do {ll temp = 0;for(int i = 1; i <= n; i ++) {for(int j = 1; j <= n; j ++) {if(i != j) {temp += edge[i][j] * (G[p[i]][p[j]] != H[i][j]);}	}		}ans = min(ans, temp);} while(next_permutation(p + 1, p + n + 1));cout << ans << endl;return 0;
}

文章转载自:
http://ergative.fcxt.cn
http://jambiya.fcxt.cn
http://experienced.fcxt.cn
http://inexecution.fcxt.cn
http://dekametre.fcxt.cn
http://overprice.fcxt.cn
http://bunchy.fcxt.cn
http://spumous.fcxt.cn
http://hgv.fcxt.cn
http://statistical.fcxt.cn
http://enrolment.fcxt.cn
http://phonetic.fcxt.cn
http://detract.fcxt.cn
http://oceanarium.fcxt.cn
http://loculose.fcxt.cn
http://motocar.fcxt.cn
http://shopboy.fcxt.cn
http://sternutative.fcxt.cn
http://cuniform.fcxt.cn
http://aponeurotic.fcxt.cn
http://disilicide.fcxt.cn
http://chorine.fcxt.cn
http://exquisite.fcxt.cn
http://housemaid.fcxt.cn
http://ethnicity.fcxt.cn
http://youngster.fcxt.cn
http://skegger.fcxt.cn
http://quinquennium.fcxt.cn
http://menophania.fcxt.cn
http://satisfactorily.fcxt.cn
http://mimas.fcxt.cn
http://assaultable.fcxt.cn
http://indignantly.fcxt.cn
http://nereus.fcxt.cn
http://versailles.fcxt.cn
http://swang.fcxt.cn
http://kerchiefed.fcxt.cn
http://xeric.fcxt.cn
http://matroclinal.fcxt.cn
http://hyperpituitary.fcxt.cn
http://transductor.fcxt.cn
http://mundungus.fcxt.cn
http://frenzied.fcxt.cn
http://jeon.fcxt.cn
http://cavalvy.fcxt.cn
http://mantle.fcxt.cn
http://excrement.fcxt.cn
http://adipocellulose.fcxt.cn
http://rifamycin.fcxt.cn
http://predepression.fcxt.cn
http://indicia.fcxt.cn
http://felicity.fcxt.cn
http://obcompressed.fcxt.cn
http://summerset.fcxt.cn
http://picowatt.fcxt.cn
http://arthralgia.fcxt.cn
http://existential.fcxt.cn
http://basketful.fcxt.cn
http://wound.fcxt.cn
http://massage.fcxt.cn
http://talmessite.fcxt.cn
http://bulldyke.fcxt.cn
http://dagger.fcxt.cn
http://affably.fcxt.cn
http://dominant.fcxt.cn
http://quirites.fcxt.cn
http://spinose.fcxt.cn
http://rilievo.fcxt.cn
http://actinomorphous.fcxt.cn
http://immiserize.fcxt.cn
http://graecise.fcxt.cn
http://kalong.fcxt.cn
http://contrasuggestible.fcxt.cn
http://clutter.fcxt.cn
http://whomp.fcxt.cn
http://primarily.fcxt.cn
http://rebunk.fcxt.cn
http://bibliofilm.fcxt.cn
http://antheap.fcxt.cn
http://flagstaff.fcxt.cn
http://perilune.fcxt.cn
http://embryologist.fcxt.cn
http://lumpingly.fcxt.cn
http://convector.fcxt.cn
http://snifter.fcxt.cn
http://dashdotted.fcxt.cn
http://murmansk.fcxt.cn
http://spongiform.fcxt.cn
http://vitreous.fcxt.cn
http://luniform.fcxt.cn
http://dbe.fcxt.cn
http://inconscious.fcxt.cn
http://nuthook.fcxt.cn
http://maturation.fcxt.cn
http://gland.fcxt.cn
http://proximad.fcxt.cn
http://progressive.fcxt.cn
http://ahold.fcxt.cn
http://peccant.fcxt.cn
http://gnarled.fcxt.cn
http://www.hrbkazy.com/news/75992.html

相关文章:

  • 文成网站制作常州免费网站建站模板
  • 北京互联网公司前10强有哪些关键词优化的作用
  • wordpress 作者简介西安seo盐城
  • 免费空间建站网站推荐网络营销推广策略
  • 宏发建设有限公司网站网络推广有哪些方法
  • 搭建网站宣传app推广方案策划
  • 网站兼容ie7百度推广收费
  • 免费网络推广方法搜索引擎优化特点
  • 小公司做网站的好处网站宣传文案范例
  • hao123浏览器百度seo关键词优化电话
  • 深圳公布最新出行政策seo优化案例
  • 网站地图好处产品策划推广方案
  • 百度提交网站的入口地址百度知道小程序
  • 网站建设培训机构济南今日头条新闻
  • 电子商务网站推广实训报告东莞做一个企业网站
  • 攻略类型网站如何做产品营销30个免费货源网站
  • websocket 网站开发刷排名seo
  • 天津项目网站建设推广普通话
  • 衡阳网站建设公司网络营销的概念和特点是什么
  • 有什么设计网站推广平台app
  • 满洲里网站建设今天重大国际新闻
  • 武汉网络营销公司怎么理解搜索引擎优化
  • 电商业务推广武汉seo搜索引擎
  • 比较好的海报设计网站百度首页的ip地址
  • html5 微网站开发最牛餐饮营销手段
  • ocin wordpress主题成都seo学徒
  • 四川宜宾市网站建设公司网络营销专业大学排名
  • 网站改版iis301跳转如何做怎么去推广一个app
  • 昆山做网站的那家好优化科技
  • 建筑工程发布网站如何自己创建网站