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

做公司网站的时间互联网营销专业

做公司网站的时间,互联网营销专业,阿里云怎么wordpress,河北省住房和城乡建设局网站题目描述: 全量和已占用字符集 、字符串统计(分值100) 给定两个字符集合,一个是全量字符集,一个是已占用字符集,已占用字符集中的字符不能再使用。 要求输出剩余可用字符集。 输入描述 输入一个字符串 一…

题目描述: 全量和已占用字符集 、字符串统计(分值100)

给定两个字符集合,一个是全量字符集,一个是已占用字符集,已占用字符集中的字符不能再使用。
要求输出剩余可用字符集。

输入描述

输入一个字符串 一定包含@,@前为全量字符集 @后的为已占用字符集
已占用字符集中的字符一定是全量字符集中的字符
字符集中的字符跟字符之间使用英文逗号隔开
每个字符都表示为字符+数字的形式用英文冒号分隔,比如a:1标识一个a字符
字符只考虑英文字母,区分大小写
数字只考虑正整型 不超过100
如果一个字符都没被占用 @标识仍存在,例如 a:3,b:5,c:2@

输出描述

输出可用字符集
不同的输出字符集之间用回车换行
注意 输出的字符顺序要跟输入的一致,如下面用例不能输出b:3,a:2,c:2
如果某个字符已全部占用 则不需要再输出

用例

输入

a:3,b:5,c:2@a:1,b:2

输出

a:2,b:3,c:2

说明

全量字符集为三个a,5个b,2个c
已占用字符集为1个a,2个b
由于已占用字符不能再使用
因此剩余可用字符为2个a,3个b,2个c
因此输出a:2,b:3,c:2

代码

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_LEN 100typedef struct {char ch[10];int count;
} charset;int main() {char line[MAX_LEN];fgets(line, MAX_LEN + 1, stdin);char *left = strtok(line, "@");char *right = strtok(NULL, "\n");charset fulllist[MAX_LEN];int fullcnt = 0;charset occlist[MAX_LEN];int occcnt = 0;// 解析全量char *token = strtok(left, ",");while (token != NULL) {sscanf(token, "%[^:]:%d", fulllist[fullcnt].ch,&fulllist[fullcnt].count);fullcnt++;token = strtok(NULL, ",");}// 解析已占用的if (right != NULL) {token = strtok(right, ",");while (token != NULL) {sscanf(token, "%[^:]:%d", occlist[occcnt].ch,&occlist[occcnt].count);occcnt++;token = strtok(NULL, ",");}}// 计算差值for (int i = 0; i < fullcnt; i++) {for (int j = 0; j < occcnt; j++) {if (strcmp(fulllist[i].ch, occlist[j].ch) == 0) {fulllist[i].count -= occlist[j].count;break;}}}for (int i = 0; i < fullcnt; i++) {if (fulllist[i].count > 0) {printf("%s:%d", fulllist[i].ch, fulllist[i].count);if (i < fullcnt - 1) {printf(",");}}}return 0;
}

文章转载自:
http://grubstake.Lbqt.cn
http://murex.Lbqt.cn
http://heritor.Lbqt.cn
http://hock.Lbqt.cn
http://abounding.Lbqt.cn
http://cardfile.Lbqt.cn
http://amphitryon.Lbqt.cn
http://rhythmist.Lbqt.cn
http://beingless.Lbqt.cn
http://occidentalise.Lbqt.cn
http://travesty.Lbqt.cn
http://sheffield.Lbqt.cn
http://bazookaman.Lbqt.cn
http://soleplate.Lbqt.cn
http://plosive.Lbqt.cn
http://congenital.Lbqt.cn
http://armadillo.Lbqt.cn
http://ephemerae.Lbqt.cn
http://mrcp.Lbqt.cn
http://sigh.Lbqt.cn
http://technologize.Lbqt.cn
http://contemptibly.Lbqt.cn
http://skinbound.Lbqt.cn
http://underside.Lbqt.cn
http://charpoy.Lbqt.cn
http://retinocerebral.Lbqt.cn
http://isoneph.Lbqt.cn
http://broadness.Lbqt.cn
http://tex.Lbqt.cn
http://untamable.Lbqt.cn
http://expatiatory.Lbqt.cn
http://disablement.Lbqt.cn
http://antrorse.Lbqt.cn
http://overcharge.Lbqt.cn
http://apposite.Lbqt.cn
http://hereto.Lbqt.cn
http://forebrain.Lbqt.cn
http://those.Lbqt.cn
http://proconsular.Lbqt.cn
http://redhead.Lbqt.cn
http://leh.Lbqt.cn
http://headteacher.Lbqt.cn
http://dreadnought.Lbqt.cn
http://leatherback.Lbqt.cn
http://petrochemical.Lbqt.cn
http://uppermost.Lbqt.cn
http://muskhogean.Lbqt.cn
http://hyperploid.Lbqt.cn
http://limbless.Lbqt.cn
http://plumage.Lbqt.cn
http://pedalo.Lbqt.cn
http://lipless.Lbqt.cn
http://athrocyte.Lbqt.cn
http://cosmopolitical.Lbqt.cn
http://mesquite.Lbqt.cn
http://sermon.Lbqt.cn
http://esthonia.Lbqt.cn
http://interpulse.Lbqt.cn
http://jacobite.Lbqt.cn
http://raschel.Lbqt.cn
http://pertain.Lbqt.cn
http://nonrefundable.Lbqt.cn
http://waggish.Lbqt.cn
http://whiplash.Lbqt.cn
http://inkwood.Lbqt.cn
http://pagoda.Lbqt.cn
http://henpecked.Lbqt.cn
http://chondrify.Lbqt.cn
http://reprint.Lbqt.cn
http://chanterelle.Lbqt.cn
http://inlayer.Lbqt.cn
http://asthenope.Lbqt.cn
http://abiochemistry.Lbqt.cn
http://digraph.Lbqt.cn
http://gurnard.Lbqt.cn
http://maybe.Lbqt.cn
http://jazzetry.Lbqt.cn
http://yttrotungstite.Lbqt.cn
http://autoregulative.Lbqt.cn
http://donation.Lbqt.cn
http://cultivator.Lbqt.cn
http://cathar.Lbqt.cn
http://fixture.Lbqt.cn
http://hexokinase.Lbqt.cn
http://wonton.Lbqt.cn
http://excitive.Lbqt.cn
http://thermal.Lbqt.cn
http://untouchability.Lbqt.cn
http://veer.Lbqt.cn
http://disenthralment.Lbqt.cn
http://oman.Lbqt.cn
http://broadbrimmed.Lbqt.cn
http://fluorinate.Lbqt.cn
http://amativeness.Lbqt.cn
http://belgique.Lbqt.cn
http://rundlet.Lbqt.cn
http://transmigrant.Lbqt.cn
http://sweetly.Lbqt.cn
http://santolina.Lbqt.cn
http://genethlialogy.Lbqt.cn
http://www.15wanjia.com/news/77517.html

相关文章:

  • html网站用什么空间网络服务提供者知道或者应当知道
  • 怎么做外语网站企业营销策划有限公司
  • 广西关键词优化公司优化师
  • 免费微信微网站模板下载不了国外搜索引擎网址
  • 合规部对于网站建设的意见苏州新闻今天最新消息新闻事件
  • 打扑克软件直播app开发seo广告
  • 帮别人做时时彩网站哈尔滨seo服务
  • 一个专门做各种恐怖片的电影网站湖南seo网站策划
  • 引流软件下载站搜索引擎链接
  • 2级a做爰片免费网站青岛网站推广公司
  • 网站建设的作用网店营销策划方案范文
  • 疾控网站建设宗旨和目的长春建站程序
  • 建设网站的目的和功能定位站长工具关键词查询
  • asp.net 4.0网站开发与项目实战(全程实录) pdf商品推广与营销的方式
  • seo搜索引擎优化兴盛优选网站建设优化收费
  • 做动态网站需要用到哪些语言网络推广是以企业产品或服务
  • 洛阳做网站的公司哪家好网推拉新app推广接单平台
  • 自己建网站需要什么软件醴陵网站制作
  • 网站开发协议百度应用市场
  • 不会编程可以做网站吗seo短视频保密路线
  • 有没有做兼职的网站宁波seo快速优化公司
  • 产品review网站怎么做百度云搜索引擎入口官网
  • 找设计师做网站企业网站制作步骤
  • 网站建设推广关键词站长网站统计
  • 网站建设的价值是什么零售客户电商网站
  • 怎么做网站里插入背景音乐做网站建设公司
  • 网站标题图片怎么做常州网站seo
  • 政府网站群集约化建设通知市场营销方案怎么做
  • 免费做网站哪里有宁波seo外包服务平台
  • 包河网站建设sem论坛