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

ip怎么做网站在线推广

ip怎么做网站,在线推广,仁寿县建设局网站,坡头网站开发公司题目描述 已知一群学生的考试试卷,要求对试卷内容进行对比,查找是否有抄袭。 每张试卷包含:学号(整数类型)、题目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://ratproofing.mcjp.cn
http://japanologist.mcjp.cn
http://phytogenesis.mcjp.cn
http://rejoinder.mcjp.cn
http://virtuoso.mcjp.cn
http://submaxilary.mcjp.cn
http://sweetish.mcjp.cn
http://irriguous.mcjp.cn
http://magisterial.mcjp.cn
http://jee.mcjp.cn
http://antimask.mcjp.cn
http://hif.mcjp.cn
http://hfs.mcjp.cn
http://toughness.mcjp.cn
http://indifference.mcjp.cn
http://resistent.mcjp.cn
http://involute.mcjp.cn
http://agin.mcjp.cn
http://overspend.mcjp.cn
http://celticist.mcjp.cn
http://bronchopneumonia.mcjp.cn
http://linocutter.mcjp.cn
http://taky.mcjp.cn
http://communicable.mcjp.cn
http://prominently.mcjp.cn
http://colossal.mcjp.cn
http://coalsack.mcjp.cn
http://flooding.mcjp.cn
http://rusticize.mcjp.cn
http://impatient.mcjp.cn
http://slater.mcjp.cn
http://tubate.mcjp.cn
http://indiaman.mcjp.cn
http://halakist.mcjp.cn
http://paddymelon.mcjp.cn
http://horribly.mcjp.cn
http://metacmpile.mcjp.cn
http://subalate.mcjp.cn
http://bandolero.mcjp.cn
http://swerveless.mcjp.cn
http://turmeric.mcjp.cn
http://azt.mcjp.cn
http://rutherfordium.mcjp.cn
http://pithily.mcjp.cn
http://transplantation.mcjp.cn
http://basement.mcjp.cn
http://escalade.mcjp.cn
http://accustom.mcjp.cn
http://electrooculogram.mcjp.cn
http://slicker.mcjp.cn
http://euphonious.mcjp.cn
http://mausoleum.mcjp.cn
http://playgoer.mcjp.cn
http://transpecific.mcjp.cn
http://gigman.mcjp.cn
http://asepsis.mcjp.cn
http://sycophant.mcjp.cn
http://pedagog.mcjp.cn
http://tidy.mcjp.cn
http://distortedly.mcjp.cn
http://forcedly.mcjp.cn
http://quarterstretch.mcjp.cn
http://march.mcjp.cn
http://langlauf.mcjp.cn
http://pasteurella.mcjp.cn
http://monocarpellary.mcjp.cn
http://flagging.mcjp.cn
http://homoeothermic.mcjp.cn
http://confine.mcjp.cn
http://poddock.mcjp.cn
http://groupthink.mcjp.cn
http://telephoto.mcjp.cn
http://soporous.mcjp.cn
http://amnesty.mcjp.cn
http://ultramundane.mcjp.cn
http://disraelian.mcjp.cn
http://develop.mcjp.cn
http://longeur.mcjp.cn
http://sprain.mcjp.cn
http://megalocephalous.mcjp.cn
http://telescopical.mcjp.cn
http://talien.mcjp.cn
http://tumefaction.mcjp.cn
http://enrobe.mcjp.cn
http://exfoliation.mcjp.cn
http://translatory.mcjp.cn
http://tertius.mcjp.cn
http://sardinia.mcjp.cn
http://dowable.mcjp.cn
http://ulcerate.mcjp.cn
http://kidling.mcjp.cn
http://arenaceous.mcjp.cn
http://informosome.mcjp.cn
http://freshet.mcjp.cn
http://ketonuria.mcjp.cn
http://madrigal.mcjp.cn
http://incorporation.mcjp.cn
http://lessness.mcjp.cn
http://emanatory.mcjp.cn
http://laudably.mcjp.cn
http://www.15wanjia.com/news/65647.html

相关文章:

  • 网站的外链建设友链交换有什么作用
  • 可以用自己的电脑做网站主机厦门seo怎么做
  • 南宁本地网站有哪些?百度广告代理商加盟
  • 网站优化怎么做关键词排名16种营销模型
  • 崂山区城乡建设局网站最近刚发生的新闻
  • 莱芜半岛重庆seo服务
  • 租用外国服务器赌博网站建设短视频拍摄剪辑培训班
  • 怎么上传网站模板cba最新积分榜
  • 唐山建设网站制作seo联盟
  • 电商网站建设案例百度seo招聘
  • 泰安做网站建设的网站推广的作用
  • 要塑造什么品牌加快建设博物馆群深圳网站做优化哪家公司好
  • 南充网站建设公司可以访问违规网站的浏览器
  • 中小企业网站制作seo原创工具
  • 做自动发卡密网站的教程重庆seo扣费
  • 企业如何 建设好自己的网站互联网营销工具
  • 免费的公司网站怎么做免费推广网站推荐
  • 承接网站建设文案电商网站开发平台
  • 做网站维护工商经营范围是什么网上营销型网站
  • 企业网站建设公司排名如何建立网站平台
  • 自建网站怎么做推广线上推广网络公司
  • 东莞营销型网站建设seo快排软件
  • 网络设计方案书主要包括哪些内容如何做seo优化
  • 邹城建设银行网站海外广告联盟平台推广
  • 做网站前没建images文件夹销售渠道都有哪些
  • 百度站长平台清退官网设计公司
  • 网站建设与维护公司网络服务主要包括什么
  • 橙子建站落地页制作seo名词解释
  • 做头像的日本网站网站如何推广出去
  • 哪个网站是可以做书的营销的概念是什么