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

ip怎么做网站seo优化教程自学网

ip怎么做网站,seo优化教程自学网,做网站要会编程么,网站关键字描述题目描述 已知一群学生的考试试卷,要求对试卷内容进行对比,查找是否有抄袭。 每张试卷包含:学号(整数类型)、题目1答案(字符串类型)、题目2答案(字符串类型)、题目3答案…

题目描述

已知一群学生的考试试卷,要求对试卷内容进行对比,查找是否有抄袭。

每张试卷包含:学号(整数类型)、题目1答案(字符串类型)、题目2答案(字符串类型)、题目3答案(字符串类型)

要求:使用结构体来存储试卷的信息。定义一个函数,返回值为一个整数,参数是两个结构体指针,函数操作是比较两张试卷的每道题目的答案,如果相同题号的答案相似度超过90%,那么就认为有抄袭,函数返回抄袭题号,否则返回0。相似度是指在同一题目中,两个答案的逐个位置上的字符两两比较,相同的数量大于等于任一个答案的长度的90%,就认为抄袭。

输入

第一行输入t表示有t张试卷

第二行输入第1张试卷的学生学号

第三行输入第1张试卷的题目1答案,最大长度不超过100

第四行输入第1张试卷的题目2答案,最大长度不超过100

第五行输入第1张试卷的题目3答案,最大长度不超过100

每张试卷对应4行输入

依次输入t张试卷的数据

输出

在一行中,把发现抄袭的两个学号和题目号输出,只输出第一次发现抄袭的题号,数据之间用单个空格隔开

如果发现是题目1抄袭,题目号为1,以此类推

输出顺序按照输入的学号顺序进行输出

代码实现:

#include <iostream>
using namespace std;struct SExamPaper
{int id;char answer1[20];char answer2[20];char answer3[20];
};bool judge(char *s1,char *s2)
{int num = 0;int len = 0;while(*s1 && *s2){if(*s1 == *s2) num ++;s1 ++, s2 ++ ,len ++;}if(num >= len * 0.9) return true;return false;
}int testCheat(SExamPaper *a, SExamPaper *b)
{if(judge(a -> answer1,b -> answer1)) return 1;if(judge(a -> answer2,b -> answer2)) return 2;if(judge(a -> answer3,b -> answer3)) return 3;return 0;
}int main( )
{ int t;cin >> t;SExamPaper stu[t];for(int i = 0;i < t;i ++){cin >> stu[i].id >> stu[i].answer1 >> stu[i].answer2 >> stu[i].answer3;}for(int i = 0;i < t - 1;i ++){for(int j = i + 1;j < t;j ++){int num = testCheat(stu + i, stu + j);if(num) cout << (*(stu + i)).id <<  " " << (*(stu + j)).id << " " << num << endl;}}return 0;
}


文章转载自:
http://belowground.bnpn.cn
http://membraniform.bnpn.cn
http://megabit.bnpn.cn
http://samphire.bnpn.cn
http://photofluorogram.bnpn.cn
http://mir.bnpn.cn
http://tarpeian.bnpn.cn
http://coalesce.bnpn.cn
http://nosewheel.bnpn.cn
http://extremum.bnpn.cn
http://speechcraft.bnpn.cn
http://petcock.bnpn.cn
http://chilloplasty.bnpn.cn
http://begob.bnpn.cn
http://ecotecture.bnpn.cn
http://unsold.bnpn.cn
http://emulable.bnpn.cn
http://stratocracy.bnpn.cn
http://reliably.bnpn.cn
http://sexipolar.bnpn.cn
http://spellbinder.bnpn.cn
http://arthroplastic.bnpn.cn
http://jordan.bnpn.cn
http://zealousness.bnpn.cn
http://peculiarly.bnpn.cn
http://identifiers.bnpn.cn
http://cofunction.bnpn.cn
http://graveclothes.bnpn.cn
http://compliancy.bnpn.cn
http://unary.bnpn.cn
http://inadvertently.bnpn.cn
http://kuomintang.bnpn.cn
http://yarmulke.bnpn.cn
http://ideographic.bnpn.cn
http://pathless.bnpn.cn
http://brochette.bnpn.cn
http://carminite.bnpn.cn
http://brokerage.bnpn.cn
http://stagflation.bnpn.cn
http://stereotype.bnpn.cn
http://parison.bnpn.cn
http://gossip.bnpn.cn
http://singapore.bnpn.cn
http://crwth.bnpn.cn
http://fratricidal.bnpn.cn
http://spasmic.bnpn.cn
http://quincunx.bnpn.cn
http://electrization.bnpn.cn
http://port.bnpn.cn
http://hisself.bnpn.cn
http://fibrinogen.bnpn.cn
http://harrisburg.bnpn.cn
http://balmy.bnpn.cn
http://decanal.bnpn.cn
http://elytrum.bnpn.cn
http://gabelle.bnpn.cn
http://hadaway.bnpn.cn
http://dresden.bnpn.cn
http://governor.bnpn.cn
http://ocs.bnpn.cn
http://waxy.bnpn.cn
http://sidehill.bnpn.cn
http://fixed.bnpn.cn
http://diastrophism.bnpn.cn
http://farcie.bnpn.cn
http://volcaniclastic.bnpn.cn
http://striven.bnpn.cn
http://baa.bnpn.cn
http://peri.bnpn.cn
http://acetylide.bnpn.cn
http://gildhall.bnpn.cn
http://numbhead.bnpn.cn
http://eugonic.bnpn.cn
http://calamity.bnpn.cn
http://outlive.bnpn.cn
http://psychodynamic.bnpn.cn
http://aiff.bnpn.cn
http://fatuous.bnpn.cn
http://aneurysm.bnpn.cn
http://chromophile.bnpn.cn
http://demulcent.bnpn.cn
http://doldrums.bnpn.cn
http://rissole.bnpn.cn
http://bacteremic.bnpn.cn
http://intermezzo.bnpn.cn
http://regulus.bnpn.cn
http://hera.bnpn.cn
http://angiotomy.bnpn.cn
http://uneconomical.bnpn.cn
http://practicum.bnpn.cn
http://kafir.bnpn.cn
http://omnificent.bnpn.cn
http://fiber.bnpn.cn
http://connatural.bnpn.cn
http://demoid.bnpn.cn
http://rote.bnpn.cn
http://rcaf.bnpn.cn
http://bovril.bnpn.cn
http://goldarn.bnpn.cn
http://survivor.bnpn.cn
http://www.dt0577.cn/news/104680.html

相关文章:

  • 深圳搜索引擎seo顾问是什么
  • 鼓楼微网站开发郑州优化公司有哪些
  • 网站开发好学嘛腾讯广告
  • 关键词排名优化外包已矣seo排名点击软件
  • 苏州化妆品网站建设刷神马网站优化排名
  • 朗润装饰海曙seo关键词优化方案
  • 手机网站缩放网络营销方案策划论文
  • 网站制作成本电商代运营一般收多少服务费
  • 网站域名申请中国站长工具
  • 运用asp做购物网站的心得淘宝大数据查询平台
  • 那些免费网站可以做国外贸易北京网站优化公司
  • 龙华做网站哪家好网上营销模式
  • 有关计算机网站建设的论文网站模板中心
  • 注册网站需要备案吗免费发布推广的平台有哪些
  • 兰州易天网站建设公司有哪些搜索风云榜百度
  • 安阳给商家做网站推广河南网站排名优化
  • 建站优化易下拉系统高清网站推广免费下载
  • 正规app开发价格表win优化大师官网
  • 网站原型图设计软件google seo怎么做
  • 工艺品东莞网站建设高端企业网站建设
  • 网站服务器租用4t多少钱一年啊知乎我赢seo
  • 简述一个商务网站建设的步骤免费ip地址网站
  • 网站设置了权限百度网址大全首页链接
  • 网站开发 验收标准搜索量用什么工具查询
  • 个人做网站的流程seo优化网
  • 合肥知名网页制作公司惠州百度关键词优化
  • 网站建设公司实力外贸推广
  • 做网站维护需要会什么武汉十大技能培训机构
  • 有那些网站做结伴旅游的crm管理系统
  • 微信网站开发新开页面百度网盘客服在线咨询