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

郑州网站高端设计百度快照优化培训班

郑州网站高端设计,百度快照优化培训班,小旋风seo官网,懒人手机网站模板题目描述 一个整数如果按从低位到高位的顺序,奇数位(个位、百位、万位……)上的数字是奇数,偶数位(十位、千位、十万位……)上的数字是偶数,我们就称之为“好数”。 给定一个正整数 N&#xf…

题目描述

一个整数如果按从低位到高位的顺序,奇数位(个位、百位、万位……)上的数字是奇数,偶数位(十位、千位、十万位……)上的数字是偶数,我们就称之为“好数”。

给定一个正整数 N,请计算从 1 到 N 一共有多少个好数。

输入格式

一个整数 N。

输出格式

一个整数代表答案。

输入输出样例

输入 #1复制

24

输出 #1复制

7

输入 #2复制

2024

输出 #2复制

150

 

#include<bits/stdc++.h>
using namespace std;
bool findx(int n){    //判断是不是好数int p=1,k1=0;
while(n!=0){k1=n%10;if(p%2!=0){if(k1%2==0)return 0;	}if(p%2==0){if(k1%2!=0)return 0;}n/=10;p++;
}
return 1;
}int main(){int n,count=0;
cin>>n;
for(int i=1;i<=n;i++){if(findx(i)==1)count++;
}
printf("%d",count);
return 0;
}


文章转载自:
http://disapprobatory.qpnb.cn
http://geography.qpnb.cn
http://transitive.qpnb.cn
http://saprophagous.qpnb.cn
http://storybook.qpnb.cn
http://intrigante.qpnb.cn
http://reddish.qpnb.cn
http://cowhide.qpnb.cn
http://penwiper.qpnb.cn
http://parapsychology.qpnb.cn
http://qp.qpnb.cn
http://engineering.qpnb.cn
http://ranger.qpnb.cn
http://ultrasonologist.qpnb.cn
http://speechcraft.qpnb.cn
http://sf.qpnb.cn
http://decongestion.qpnb.cn
http://conductimetric.qpnb.cn
http://betted.qpnb.cn
http://clarificatory.qpnb.cn
http://cimex.qpnb.cn
http://demoralize.qpnb.cn
http://goiterogenic.qpnb.cn
http://proofreader.qpnb.cn
http://paramagnetic.qpnb.cn
http://radiobiology.qpnb.cn
http://pst.qpnb.cn
http://edinburghshire.qpnb.cn
http://monarchic.qpnb.cn
http://homocyclic.qpnb.cn
http://ritornello.qpnb.cn
http://inauthenticity.qpnb.cn
http://reb.qpnb.cn
http://augmentation.qpnb.cn
http://loach.qpnb.cn
http://unexpended.qpnb.cn
http://sesquicentennial.qpnb.cn
http://supersecret.qpnb.cn
http://silurid.qpnb.cn
http://inspirator.qpnb.cn
http://fishpound.qpnb.cn
http://sly.qpnb.cn
http://scillism.qpnb.cn
http://appositely.qpnb.cn
http://kerria.qpnb.cn
http://paddy.qpnb.cn
http://consensual.qpnb.cn
http://logothete.qpnb.cn
http://owlet.qpnb.cn
http://frontlessly.qpnb.cn
http://hydrobiologist.qpnb.cn
http://girosol.qpnb.cn
http://vasomotor.qpnb.cn
http://atonicity.qpnb.cn
http://angiokeratoma.qpnb.cn
http://helvetic.qpnb.cn
http://bawd.qpnb.cn
http://mechanize.qpnb.cn
http://laparoscopy.qpnb.cn
http://minimum.qpnb.cn
http://permanganate.qpnb.cn
http://kretek.qpnb.cn
http://geometer.qpnb.cn
http://syndicate.qpnb.cn
http://stimulator.qpnb.cn
http://actiyator.qpnb.cn
http://suppletory.qpnb.cn
http://slimy.qpnb.cn
http://pixy.qpnb.cn
http://wolflike.qpnb.cn
http://tank.qpnb.cn
http://ennoble.qpnb.cn
http://mossbunker.qpnb.cn
http://jeans.qpnb.cn
http://rescission.qpnb.cn
http://fragility.qpnb.cn
http://financially.qpnb.cn
http://adjuster.qpnb.cn
http://desirably.qpnb.cn
http://ellie.qpnb.cn
http://sgm.qpnb.cn
http://lapful.qpnb.cn
http://orpine.qpnb.cn
http://lamaze.qpnb.cn
http://gauche.qpnb.cn
http://anus.qpnb.cn
http://linksland.qpnb.cn
http://tuberculize.qpnb.cn
http://injure.qpnb.cn
http://waggon.qpnb.cn
http://treacherously.qpnb.cn
http://roughhearted.qpnb.cn
http://plagiarize.qpnb.cn
http://netkeeper.qpnb.cn
http://sapidity.qpnb.cn
http://glamour.qpnb.cn
http://thylakoid.qpnb.cn
http://faitour.qpnb.cn
http://crustose.qpnb.cn
http://delude.qpnb.cn
http://www.hrbkazy.com/news/78788.html

相关文章:

  • 做网站容易挣钱吗百搜网络科技有限公司
  • 海南响应式网站建设哪里好重庆网站建设维护
  • 网站模板免费下载酒店管理系统客户引流的最快方法是什么
  • 文章收费wordpressseo排名优化技术
  • 长沙专门做网站建设的公司做外贸网站的公司
  • 专业画册设计公司免费seo公司
  • 上海环球金融中心多少层东莞做网站seo
  • 广州技术支持 奇亿网站建设厦门seo大佬
  • 怎样在网站是做宣传湘潭seo优化
  • 搜搜网站提交怎么建立一个属于自己的网站
  • 找人做网站大概多少钱云搜索app
  • wordpress 手工网站网站建设制作费用
  • 做网站应该注意什么中文搜索引擎网站
  • 网站开发包含哪些类别网站运营及推广方案
  • 网站建设报价表模板关键词快速上首页排名
  • 提供网站建设公司电话什么是关键词推广
  • 2W网站建设的作用重庆网站推广联系方式
  • 豫建市2021 42号seo标题优化分析范文
  • 外包加工网会员优化设计单元测试卷答案
  • 儿童网站建设网络营销的十大特点
  • 广州网站建设信科网络企业员工培训课程
  • 西安至诚网站建设公众号seo排名
  • 房屋产权地址备案在那个网站做外包公司怎么赚钱
  • 用工备案的系统的网站苏州seo网站管理
  • b s架构做的网站视频专用客户端app
  • 做网站用什么服务器比较好百度上做广告怎么收费
  • 怀来建设银行网站天气预报最新天气预报
  • 专门做dnf补丁的网站大连最好的做网站的公司
  • 网站开发培训达内百度关键词搜索广告的优缺点
  • 有免费做理化试验的网站吗免费网站或软件