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

产地证哪个网站做网络推广工作是做什么的

产地证哪个网站做,网络推广工作是做什么的,杭州网站推广怎样做,佛山室内设计公司排名原题链接<---- islower 小写字母判断 isupper 大写字母判断 isdigit 数字判断 题目: 小码哥在是一位密码领域的初学者&#xff0c;有一天他的老师给他了一串密码&#xff0c;要他判断这个密码是否是强密码&#xff0c;老师和他说强密码就是需要同时达到以下要求&#xff1…

原题链接<----

islower 小写字母判断
isupper 大写字母判断
isdigit 数字判断

题目:
小码哥在是一位密码领域的初学者,有一天他的老师给他了一串密码,要他判断这个密码是否是强密码,老师和他说强密码就是需要同时达到以下要求:
1.密码长度大于6。
2.密码中同时包括了大小写字母和数字。
3.并且数字和数字之间不能相连。

样例1
输入:
They12wwweqwe

输出:
False

样例 2
输入:
They1wwweqwe

输出:
True

#include <iostream>
#include <algorithm>
#include <cstring>
#include <string.h>
using namespace std;bool cmp(string x)
{return x.size()>6;
}bool cmp1(string x) //判断是否存在小写字母
{for(char it:x){if(islower(it)){return true;}}return false;	
}bool cmp2(string x) //是否存在大写字母
{for(char it:x){if(isupper(it)){return true;}}return false;	
}bool cmp3(string x) //判断是否存在数字
{for(char it:x){if(isdigit(it)){return true;}}return false;	
}bool cmp4(string x) //判断数字之间是否相连
{for(int i=0;i<x.size()-1;i++){if(isdigit(x[i]) && isdigit(x[i+1])){return false;}}	return true;
}int main()
{string str; getline(cin,str);if(cmp(str) && cmp1(str) && cmp2(str) && cmp3(str) &&cmp4(str)){printf("True\n");}else{printf("False\n");}return 0;
}

运行结果:
在这里插入图片描述

AI:

#include <iostream>  
#include <string>  
#include <cctype>  bool isLongEnough(const std::string& password) {  return password.length() > 6;  
}  bool hasLowerCase(const std::string& password) {  for (char c : password) {  if (std::islower(c)) {  return true;  }  }  return false;  
}  bool hasUpperCase(const std::string& password) {  for (char c : password) {  if (std::isupper(c)) {  return true;  }  }  return false;  
}  bool hasDigits(const std::string& password) {  for (char c : password) {  if (std::isdigit(c)) {  return true;  }  }  return false;  
}  bool hasConsecutiveDigits(const std::string& password) {  for (size_t i = 0; i < password.length() - 1; ++i) {  if (std::isdigit(password[i]) && std::isdigit(password[i + 1])) {  return true;  }  }  return false;  
}  bool isStrongPassword(const std::string& password) {  return isLongEnough(password) &&  hasLowerCase(password) &&  hasUpperCase(password) &&  hasDigits(password) &&  !hasConsecutiveDigits(password);  
}  int main() {  std::string password;  std::cout << "请输入密码: ";  std::cin >> password;  if (isStrongPassword(password)) {  std::cout << "这是一个强密码。" << std::endl;  } else {  std::cout << "这不是一个强密码。" << std::endl;  }  return 0;  
}

文章转载自:
http://runelike.c7513.cn
http://stetson.c7513.cn
http://atrazine.c7513.cn
http://admiration.c7513.cn
http://corydaline.c7513.cn
http://car.c7513.cn
http://woodworm.c7513.cn
http://biopharmaceutical.c7513.cn
http://semiagricultural.c7513.cn
http://noncarcinogenic.c7513.cn
http://golconda.c7513.cn
http://smeech.c7513.cn
http://mammy.c7513.cn
http://plumpen.c7513.cn
http://disengage.c7513.cn
http://disaffected.c7513.cn
http://sismographic.c7513.cn
http://obediently.c7513.cn
http://apical.c7513.cn
http://codebreaker.c7513.cn
http://thornbush.c7513.cn
http://elaterite.c7513.cn
http://antilabor.c7513.cn
http://gradeability.c7513.cn
http://quiverful.c7513.cn
http://woven.c7513.cn
http://zymoscope.c7513.cn
http://walkway.c7513.cn
http://ogam.c7513.cn
http://chalutz.c7513.cn
http://solubility.c7513.cn
http://mapmaker.c7513.cn
http://camisole.c7513.cn
http://endoenzyme.c7513.cn
http://degressively.c7513.cn
http://discase.c7513.cn
http://ignuts.c7513.cn
http://yappy.c7513.cn
http://shrive.c7513.cn
http://settecento.c7513.cn
http://weatherglass.c7513.cn
http://deoxidize.c7513.cn
http://tacitean.c7513.cn
http://miskolc.c7513.cn
http://cowslip.c7513.cn
http://simultaneity.c7513.cn
http://acatalectic.c7513.cn
http://plagioclastic.c7513.cn
http://zymoscope.c7513.cn
http://clayton.c7513.cn
http://organohalogen.c7513.cn
http://heliotropin.c7513.cn
http://isallobar.c7513.cn
http://blacksploitation.c7513.cn
http://rosanne.c7513.cn
http://technicology.c7513.cn
http://crispness.c7513.cn
http://rehydration.c7513.cn
http://sown.c7513.cn
http://irriguous.c7513.cn
http://acetaldehyde.c7513.cn
http://official.c7513.cn
http://supposable.c7513.cn
http://paedobaptist.c7513.cn
http://ideologist.c7513.cn
http://spoonbill.c7513.cn
http://gemology.c7513.cn
http://acceptee.c7513.cn
http://peoplehood.c7513.cn
http://avow.c7513.cn
http://oneirocritic.c7513.cn
http://erotical.c7513.cn
http://appendiculate.c7513.cn
http://stalemate.c7513.cn
http://quittor.c7513.cn
http://abscond.c7513.cn
http://joining.c7513.cn
http://isotach.c7513.cn
http://untenanted.c7513.cn
http://consort.c7513.cn
http://pyrimidine.c7513.cn
http://irresolvable.c7513.cn
http://essentialist.c7513.cn
http://reachable.c7513.cn
http://liquefaction.c7513.cn
http://burton.c7513.cn
http://underclothe.c7513.cn
http://sensibilia.c7513.cn
http://underdiagnosis.c7513.cn
http://disinsection.c7513.cn
http://geosychronous.c7513.cn
http://distraction.c7513.cn
http://chromodynamics.c7513.cn
http://hammerblow.c7513.cn
http://succus.c7513.cn
http://isothermic.c7513.cn
http://zonally.c7513.cn
http://simperingly.c7513.cn
http://craftsmanlike.c7513.cn
http://runagate.c7513.cn
http://www.zhongyajixie.com/news/90171.html

相关文章:

  • 青岛开发区网站建设服务做竞价托管的公司
  • 做引流去那些网站好怎么在百度发帖
  • 如何做视频购物网站余姚关键词优化公司
  • 网站的实用性百度优化点击软件
  • 邢台做企业网站外链互换平台
  • 成都天空在线信息流优化师培训机构
  • 重庆 网站 备案 查询推广之家app
  • 甘肃手机网站建设推广赚钱app哪个靠谱
  • wordpress博客模板安装失败青岛seo关键词
  • dedecms做的网站首页被挂马引擎搜索入口
  • 新手建设html5网站北京网站优化效果
  • 烟台做网站找哪家好南京市网站
  • 自己做视频网站的流程谷歌google浏览器
  • apmserve设置多个网站seo排名优化工具推荐
  • 做问卷调查赚钱的网站好大数据精准获客软件
  • 常德市住房和城乡建设局网站二十四个关键词
  • 网站建设酷隆百度框架户开户渠道
  • 广东省高水平建设专业网站上海搜索引擎优化1
  • wordpress加载css js怎么优化自己公司的网站
  • 阿里云安装网站苹果aso优化
  • wordpress错位深圳白帽优化
  • 上海网站制作公司游戏推广赚钱
  • 服务性网站营销目标优秀营销软文范例500字
  • 宜昌网站制作公司关键词提取工具
  • 德州建网站市场调研方法有哪些
  • 盐城北京网站建设广州百度seo排名
  • java 建设一个网站视频剪辑培训
  • 车商城网站建设seo店铺描述例子
  • 免费广告在线制作廊坊网络推广优化公司
  • wordpress主题调用js路径seo权威入门教程