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

企业网站如何进行定位wordpress 加速会

企业网站如何进行定位,wordpress 加速会,宁波模板做网站,口碑宣传判断质数问题 输⼊⼀个正整数#xff0c;判断该数是否是质数。如果为质数输出 yes#xff0c;如果不是输出no 样例输⼊113 输出yes int n Convert.ToInt32(Console.ReadLine()); int count 0; for (int i 1; i n 1; i) {if (n % i 0) // 判断该数能被整除{coun… 判断质数问题 输⼊⼀个正整数判断该数是否是质数。如果为质数输出 yes如果不是输出no 样例输⼊113 输出yes int n Convert.ToInt32(Console.ReadLine()); int count 0; for (int i 1; i n 1; i) {if (n % i 0) // 判断该数能被整除{count; // 计数器1} } if (count 2) // 次数为2代表1和它本身即为质数 {Console.WriteLine(yes); } else {Console.WriteLine(no); } 输出因数问题 输⼊⼀个整数输出该整数的因数个数和所有因数。 样例输⼊ 9 样例输出 3  1  3  9 int n Convert.ToInt32(Console.ReadLine()); int count 0; string a ; // 定义空字符串变量为了后面存储所有因数 for (int i 1; i n 1; i) {if (n % i 0) // 因数就是能被整除的数{count; // 次数1a i ; // 因数存储} } Console.WriteLine(count); // 输出因数个数 Console.Write(a); // 输出所有的因数 整数插入有序数组组成新的有序数组 有n(n100)个整数已经按照从⼩到⼤顺序排列好现在另外给⼀个整数x请将该数插⼊到序列中并使新的序列仍然有序。输出新的序列。 样例输入10 20 30 40 50        15   样例输出10 15 20 30 40 50 class Program{static void Main(string[] args){string str Console.ReadLine();// 输入有序数组// 将字符数组转换为整数数组string[] strArray str.Split( );int[] intArray new int[strArray.Length];for (int i 0; i strArray.Length; i){int num Convert.ToInt32(strArray[i]);intArray[i] num; // 赋值}// 给的整数xint x Convert.ToInt32(Console.ReadLine());int nIndex intArray.Length - 1;// 假设索引是最后一位for (int i 0; i intArray.Length - 1; i){if (x intArray[i] x intArray[i 1]) // 找出该整数的索引{nIndex i;break;}}if (x intArray[0]) // 特殊情况该整数为最小值时{nIndex -1;}int[] intNewArray new int[intArray.Length 1]; // 定义新数组// 0-nIndex 0 - -1for (int i 0; i nIndex 1; i){intNewArray[i] intArray[i]; // 遍历到nIndex 1给新数组赋值}intNewArray[nIndex 1] x; // 将该整数也放入新数组中// nIndex1 -- length-1for (int i nIndex 1; i intArray.Length; i){intNewArray[i 1] intArray[i]; // 从nIndex 1开始继续遍历给新数组赋剩余的值}foreach (int num in intNewArray){Console.Write(num );// 输出新的有序数组}}}
http://www.hkea.cn/news/14351229/

相关文章:

  • 网站页面太多怎么做网站地图吉林省高等级公路建设局死人网站
  • 广东智能网站建设配件店面设计薪酬
  • 南城网站建设公司策划上海网站排名优化公司
  • 网站 302重定向 备案wordpress用户积分
  • 备案 网站信息 备注上海阔达网站建设公司
  • 企业网站建设教程 pdf新泰网页设计
  • 织梦做网站要多长时间wordpress搭建个人博客linux
  • 免费的网站建造wordpress主题摘要字数
  • 好看响应式网站模板深圳推广不动产可视化查询
  • 微信公众号开发网站建设建站公司获客成本
  • 高校校园网站建设项目的要求柳州柳北建设局网站
  • 网站建设丶金手指花总13镇江seo快速排名
  • 制作电商网站google开户
  • 创建大型网站微信公众号登录wordpress网站
  • 哪家网站建设公司比较好如何做一名合格的网站人
  • 河南省城乡和住房建设厅网站首页胶州网站搭建公司
  • 学包装设计网站市场营销渠道
  • 订货网站建设中国建筑集团网站
  • 太原企业网站排名网站维护报价表
  • 自己网站做搜索引擎优化有什么兼职做it的网站
  • 网站上传权限问题网站开发公司 郑州
  • 广州番禺网站推广电子商务网站建设问题
  • 网站建设与制作河南春辉建设集团官方网站
  • 做网站 商标分类最新新闻事件今天
  • 电影网站建设视频教程网站备案 个体工商户
  • 网站建设与开发的论文网上购物平台哪个好
  • dz论坛可以做招聘网站做图有什么网站
  • 左侧导航网站wordpress模板UI
  • dede网站模板替换网站开发文档源码
  • 网站内容策划阿里巴巴国际站买家入口