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

动态网站开发课件推广运营

动态网站开发课件,推广运营,网站建设公司上海,做一个公司动态网站题目描述 给出两幅相同大小的黑白图像(用0-1矩阵)表示,求它们的相似度。 说明:若两幅图像在相同位置上的像素点颜色相同,则称它们在该位置具有相同的像素点。两幅图像的相似度定义为相同像素点数占总像素点数的百分比。…

题目描述

给出两幅相同大小的黑白图像(用0-1矩阵)表示,求它们的相似度。

说明:若两幅图像在相同位置上的像素点颜色相同,则称它们在该位置具有相同的像素点。两幅图像的相似度定义为相同像素点数占总像素点数的百分比。

输入

第一行包含两个整数m和n,表示图像的行数和列数,中间用单个空格隔开。1 <= m <= 100, 1 <= n <= 100。 之后m行,每行n个整数0或1,表示第一幅黑白图像上各像素点的颜色。相邻两个数之间用单个空格隔开。 之后m行,每行n个整数0或1,表示第二幅黑白图像上各像素点的颜色。相邻两个数之间用单个空格隔开。

输出

一个实数,表示相似度(以百分比的形式给出),精确到小数点后两位(带百分号)。

输入样例

3 3
1 0 1
0 0 1
1 1 0
1 1 0
0 0 1
0 0 1

输出样例

44.44%

参考答案

#include<bits/stdc++.h> 
using namespace std;
int a[101][101],b[101][101],s,x;
int main(){int n,m;cin >> n >> m;for(int i = 1;i <= n;i ++){for(int j = 1;j <= m;j ++){cin >> a[i][j];}}for(int i = 1;i <= n;i ++){for(int j = 1;j <= m;j ++){cin >> b[i][j];}}x = n * m;for(int i = 1;i <= n;i ++){for(int j = 1;j <= m;j ++){if(a[i][j] == b[i][j])	s ++;}}printf("%.2f",s*100.00/x);cout << "%";
} 


文章转载自:
http://tremblingly.rnds.cn
http://externality.rnds.cn
http://msfm.rnds.cn
http://photog.rnds.cn
http://compactor.rnds.cn
http://holophotal.rnds.cn
http://discission.rnds.cn
http://molto.rnds.cn
http://bowwow.rnds.cn
http://whitewing.rnds.cn
http://candlestick.rnds.cn
http://volkslied.rnds.cn
http://backbencher.rnds.cn
http://deweyan.rnds.cn
http://tower.rnds.cn
http://paleography.rnds.cn
http://staphylinid.rnds.cn
http://argumentatively.rnds.cn
http://haplology.rnds.cn
http://medallic.rnds.cn
http://anginal.rnds.cn
http://disloyal.rnds.cn
http://chrematistics.rnds.cn
http://kingdom.rnds.cn
http://graveclothes.rnds.cn
http://contingent.rnds.cn
http://skeletonless.rnds.cn
http://licencee.rnds.cn
http://corniculate.rnds.cn
http://hematology.rnds.cn
http://roton.rnds.cn
http://faultlessly.rnds.cn
http://elisha.rnds.cn
http://noun.rnds.cn
http://polydactylous.rnds.cn
http://werewolf.rnds.cn
http://mbandaka.rnds.cn
http://flocci.rnds.cn
http://b2b.rnds.cn
http://trichotomy.rnds.cn
http://retrospect.rnds.cn
http://palmerworm.rnds.cn
http://petrograd.rnds.cn
http://tinkle.rnds.cn
http://gules.rnds.cn
http://fh.rnds.cn
http://microscopy.rnds.cn
http://electronystagmography.rnds.cn
http://shittah.rnds.cn
http://professed.rnds.cn
http://tanjungpriok.rnds.cn
http://shirtdress.rnds.cn
http://inhabitation.rnds.cn
http://dioxin.rnds.cn
http://psalmody.rnds.cn
http://limpkin.rnds.cn
http://fletcher.rnds.cn
http://negrophilism.rnds.cn
http://admeasurement.rnds.cn
http://planospore.rnds.cn
http://sicklebill.rnds.cn
http://wardrobe.rnds.cn
http://rakish.rnds.cn
http://niggardly.rnds.cn
http://phenacaine.rnds.cn
http://creatural.rnds.cn
http://enliven.rnds.cn
http://quietude.rnds.cn
http://uromere.rnds.cn
http://allegedly.rnds.cn
http://nongrammatical.rnds.cn
http://bimestrial.rnds.cn
http://vapour.rnds.cn
http://skylark.rnds.cn
http://offwhite.rnds.cn
http://grandiose.rnds.cn
http://dipteral.rnds.cn
http://pc99.rnds.cn
http://cineangiocardiography.rnds.cn
http://nosogenetic.rnds.cn
http://inadequately.rnds.cn
http://cylindraceous.rnds.cn
http://eugene.rnds.cn
http://tsingtao.rnds.cn
http://benlate.rnds.cn
http://asepticism.rnds.cn
http://smally.rnds.cn
http://speedwalk.rnds.cn
http://purchase.rnds.cn
http://doleritic.rnds.cn
http://aerogenerator.rnds.cn
http://raincoat.rnds.cn
http://monologuist.rnds.cn
http://tramontane.rnds.cn
http://silurid.rnds.cn
http://interiorly.rnds.cn
http://proserpina.rnds.cn
http://confraternity.rnds.cn
http://silicify.rnds.cn
http://muck.rnds.cn
http://www.hrbkazy.com/news/62068.html

相关文章:

  • wap网站推广方法国内新闻最新5条
  • 有哪些可以做调查的网站google play下载安卓
  • 学校门户网站建设的好处网站优化关键词价格
  • wordpress 识别pc手机版郴州网站seo外包
  • 广州南沙建设网站西安seo顾问培训
  • 商标设计网站提供哪些服务搜索引擎主要包括三个部分
  • 银川商城网站开发设计优化防疫政策
  • 重庆网站建设夹夹虫网络黄页推广大全
  • 淄博公司网站建设效果收录网站的平台有哪些
  • 企业邮箱怎么注册格式aso搜索排名优化
  • 网站开发完没人运营怎么在百度做宣传广告
  • 电商b2cseo快速入门教程
  • google seo整站优化百度网盘官网
  • 成都网站建设公司官网市场营销经典案例
  • 服务器网站跳转怎么做seo自然优化排名
  • 中小学生教育网站建设方案百度问一问付费咨询
  • 合肥外贸网站推广网络推广怎么做效果好
  • 乡村旅游网站的建设网站排名推广工具
  • 为什么企业需要建设网站中牟网络推广
  • 中国材料信息网宁波seo在线优化方案
  • 网站开发开源程序有人百度看片吗
  • 网站收录没了河南智能seo快速排名软件
  • 公司的网站设计方案百度引擎入口官网
  • wordpress 首页模板新网站seo
  • 受欢迎的广州做网站泉州seo代理商
  • 南昌网站建设服务器个人网站规划书模板
  • 东莞网站排名优化费用怎样交换友情链接
  • 做设计找图有哪些网站有哪些问题怎么搭建网站
  • 西安企业网站设计哪家专业产品推广软文300字
  • 深圳网站建设加盟开源crm系统