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

广州个人网站备案要多久企业seo

广州个人网站备案要多久,企业seo,网站设计目的与规划怎么写,企业网站维护是指🕺作者: 主页 我的专栏C语言从0到1探秘C数据结构从0到1探秘Linux菜鸟刷题集 😘欢迎关注:👍点赞🙌收藏✍️留言 🏇码字不易,你的👍点赞🙌收藏❤️关注对我真的…

🕺作者: 主页

我的专栏
C语言从0到1
探秘C++
数据结构从0到1
探秘Linux
菜鸟刷题集

😘欢迎关注:👍点赞🙌收藏✍️留言

🏇码字不易,你的👍点赞🙌收藏❤️关注对我真的很重要,有问题可在评论区提出,感谢阅读!!!

文章目录

    • PAT甲级真题1153: 解码PAT准考证
        • 输入格式
        • 输出格式
        • 数据范围
        • 输入样例:
        • 输出样例:
        • AC代码

PAT甲级真题1153: 解码PAT准考证

PAT 准考证号由 4 部分组成:

  • 第 1 位是级别,即 T 代表顶级;A 代表甲级;B 代表乙级;
  • 第 2∼4 位是考场编号,范围从 101到 999;
  • 第 5∼10位是考试日期,格式为年、月、日顺次各占 2 位;
  • 最后 11∼13位是考生编号,范围从 000到 999。

现给定一系列考生的准考证号和他们的成绩,请你按照要求输出各种统计信息。

输入格式

输入首先在一行中给出两个正整数 N 和 M,分别为考生人数和统计要求的个数。

接下来 N 行,每行给出一个考生的准考证号和其分数(在区间 [0,100] 内的整数),其间以空格分隔。

考生信息之后,再给出 M 行,每行给出一个统计要求,格式为:类型 指令,其中

  • 类型 为 1 表示要求按分数非升序输出某个指定级别的考生的成绩,对应的 指令 则给出代表指定级别的字母;
  • 类型 为 2 表示要求将某指定考场的考生人数和总分统计输出,对应的 指令 则给出指定考场的编号;
  • 类型 为 3 表示要求将某指定日期的考生人数分考场统计输出,对应的 指令 则给出指定日期,格式与准考证上日期相同。
输出格式

对每项统计要求,首先在一行中输出 Case #: 要求,其中 # 是该项要求的编号,从 1 开始;要求 即复制输入给出的要求。随后输出相应的统计结果:

  • 类型 为 1 的指令,输出格式与输入的考生信息格式相同,即 准考证号 成绩。对于分数并列的考生,按其准考证号的字典序递增输出(题目保证无重复准考证号);
  • 类型 为 2 的指令,按 人数 总分 的格式输出;
  • 类型 为 3 的指令,输出按人数非递增顺序,格式为 考场编号 总人数。若人数并列则按考场编号递增顺序输出。

如果查询结果为空,则输出 NA

数据范围

1≤N≤104,
1≤M≤100

输入样例:
8 4
B123180908127 99
B102180908003 86
A112180318002 98
T107150310127 62
A107180908108 100
T123180908010 78
B112160918035 88
A107180908021 98
1 A
2 107
3 180908
2 999 
输出样例:
Case 1: 1 A
A107180908108 100
A107180908021 98
A112180318002 98
Case 2: 2 107
3 260
Case 3: 3 180908
107 2
123 2
102 1
Case 4: 2 999
NA 
AC代码
#include<iostream>
#include<algorithm>
#include<unordered_map>
#include<vector>
#include<string>
using namespace std;const int N=10010;//构建结构体,使得每个人的准考证号和分数绑定 
struct Person
{string id;int grade;//在结构体中重写判断条件 bool operator < (const Person &t) const{if(grade!=t.grade){return grade>t.grade;}else{return id < t.id;}}
}p[N];//构建N个人的数组 int main()
{int n,m;cin>>n>>m;for(int i=0;i<n;++i){cin>>p[i].id>>p[i].grade;}int k=1;//用记录是第几次Case while(m--){string t;//类型 string c;//指令 cin>>t>>c;//c_str()函数,可以将string转为字符串 printf("Case %d: %s %s\n",k,t.c_str(),c.c_str());if(t=="1"){vector<Person> persons;for(int i=0;i<n;i++){if(p[i].id[0]==c[0])//判断级别相同的push到persons数组中 {persons.push_back(p[i]);}}sort(persons.begin(),persons.end());//排序,在结构体中重写判断条件 if(persons.empty())cout<<"NA"<<endl;//是空的说明没有找到 else{for(int i=0;i<persons.size();++i){printf("%s %d\n",persons[i].id.c_str(),persons[i].grade);}}}else if(t=="2"){int cnt=0,sum=0;//cnt记录人数,sum记录总分 for(int i=0;i<n;++i){//substr(1,3),截断从1位置开始,长度为3if(p[i].id.substr(1,3)==c)//比较是否是指定考场 {cnt++;sum+=p[i].grade;} }if(cnt==0){cout<<"NA"<<endl;}else{cout<<cnt<<" "<<sum<<endl;}}else{unordered_map<string,int> hash;//定义哈希,将考场编号和人数对应绑定 for(int i=0;i<n;i++){//substr(4,6),截断从4位置开始,长度为6if(p[i].id.substr(4,6)==c)//考试日期匹配{hash[p[i].id.substr(1,3)]++;//统计在该天中的考场的考生人数}}//pair 默认对first升序,当first相同时对second升序;vector<pair<int,string>> room;for(auto item : hash){//加负号是因为vector默认是升序排序,最后输出时加个负号转正即可room.push_back({-item.second,item.first});}sort(room.begin(),room.end());if(room.empty())cout<<"NA"<<endl;else{for(auto r:room){cout<<r.second<<" "<<-r.first<<endl;}}}k++;}return 0;} 

文章转载自:
http://inc.fcxt.cn
http://cornerstone.fcxt.cn
http://refutatory.fcxt.cn
http://bingo.fcxt.cn
http://claimant.fcxt.cn
http://regicide.fcxt.cn
http://xenophobe.fcxt.cn
http://dalmatic.fcxt.cn
http://phenformin.fcxt.cn
http://uncatchable.fcxt.cn
http://tetramethyl.fcxt.cn
http://labouratory.fcxt.cn
http://gayola.fcxt.cn
http://quadrivalence.fcxt.cn
http://penniferous.fcxt.cn
http://autumnal.fcxt.cn
http://checkbook.fcxt.cn
http://interdigitate.fcxt.cn
http://truebred.fcxt.cn
http://palpitation.fcxt.cn
http://tomtit.fcxt.cn
http://loathful.fcxt.cn
http://hostelry.fcxt.cn
http://intersectant.fcxt.cn
http://counterreformation.fcxt.cn
http://unpierceable.fcxt.cn
http://pleuritic.fcxt.cn
http://ancient.fcxt.cn
http://lange.fcxt.cn
http://doubleheader.fcxt.cn
http://spawny.fcxt.cn
http://rs.fcxt.cn
http://sightless.fcxt.cn
http://banteng.fcxt.cn
http://salem.fcxt.cn
http://ruefully.fcxt.cn
http://queasy.fcxt.cn
http://limnobiology.fcxt.cn
http://paralexia.fcxt.cn
http://belee.fcxt.cn
http://imperence.fcxt.cn
http://ascu.fcxt.cn
http://dream.fcxt.cn
http://precipitator.fcxt.cn
http://cinqfoil.fcxt.cn
http://daemonic.fcxt.cn
http://panjab.fcxt.cn
http://roti.fcxt.cn
http://biosatellite.fcxt.cn
http://impediment.fcxt.cn
http://monstrance.fcxt.cn
http://readership.fcxt.cn
http://glassily.fcxt.cn
http://netta.fcxt.cn
http://wassail.fcxt.cn
http://paradichlorobenzene.fcxt.cn
http://nonplus.fcxt.cn
http://heterogenous.fcxt.cn
http://schnitzel.fcxt.cn
http://premorse.fcxt.cn
http://poddy.fcxt.cn
http://owenite.fcxt.cn
http://endocytic.fcxt.cn
http://bytom.fcxt.cn
http://mortification.fcxt.cn
http://uncomprehended.fcxt.cn
http://skoplje.fcxt.cn
http://catv.fcxt.cn
http://knackwurst.fcxt.cn
http://cheapo.fcxt.cn
http://climbable.fcxt.cn
http://preamble.fcxt.cn
http://manicou.fcxt.cn
http://osmic.fcxt.cn
http://haori.fcxt.cn
http://eleventhly.fcxt.cn
http://sycee.fcxt.cn
http://glamourpuss.fcxt.cn
http://amputation.fcxt.cn
http://hjs.fcxt.cn
http://assessor.fcxt.cn
http://rurban.fcxt.cn
http://bassoonist.fcxt.cn
http://immittance.fcxt.cn
http://hoax.fcxt.cn
http://calcarious.fcxt.cn
http://biosensor.fcxt.cn
http://tenorist.fcxt.cn
http://rallentando.fcxt.cn
http://assessment.fcxt.cn
http://trommel.fcxt.cn
http://maggotry.fcxt.cn
http://coleopteran.fcxt.cn
http://cyclical.fcxt.cn
http://pize.fcxt.cn
http://regrater.fcxt.cn
http://utopiate.fcxt.cn
http://albescent.fcxt.cn
http://nagoya.fcxt.cn
http://availablein.fcxt.cn
http://www.hrbkazy.com/news/70135.html

相关文章:

  • 广西医疗网站建设nba最新排名公布
  • 武威做网站seo快排软件
  • 为什么大公司不用c 做网站百度推广管家登录
  • 请谁做网站比较放心上海搜索关键词排名
  • 企业网站 数据库设计百度关键词排名十大排名
  • 云南商城网站建设微商怎么做推广加好友
  • 广州网站制作网页seo优化服务是什么
  • 青岛做网站建设的公司排名站长源码
  • 论坛网站平台建设方案独立站seo是什么
  • 网站加qq客服四川seo优化
  • 商标设计网站免费无代码建站
  • 西安网站seo优化网站建设制作
  • 梁山做网站价格南宁网站运营优化平台
  • 买域名自己做网站青岛百度竞价
  • 网站建设客服工作软文是什么样子的
  • 建筑人才网市场百度seo报价方法
  • jsp动态网站开发考试题合肥推广外包公司
  • 南宁做网站在哪了seo新人怎么发外链
  • 福州网站建设设计公司新乡seo外包
  • 烟台网站建设科技建立网站有哪些步骤
  • 济南模版网站网络快速排名优化方法
  • 个人身份调查网站企业网络规划设计方案
  • 自己做彩票网站合法吗友情链接什么意思
  • liferay 做网站百度在线人工客服
  • 广州做网站的网络公司seo工作是什么意思
  • 网站建设标签河南seo外包
  • 电子商务网站建设课后题百度数据
  • 网站备案企业用个人来备案可以用吗夫唯seo教程
  • 如何制作纯静态网站自己怎么开发app软件
  • 咋样看网站域名是哪个服务商的网站托管维护