基于visual Studio2013解决C语言竞赛题之0520相邻元素

时间:2022-02-28 09:53:17







基于visual Studio2013解决C语言竞赛题之0520相邻元素

题目

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhUAAAA0CAYAAAA9i8rEAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAnpSURBVHhe7d2Brty2DgTQpD8e5MvbDpBB57KkRMnyehd3DiBcW6JIypuH9UvT9Off//phZmZmdtFff36amZmZXeKXCjMzMzvCLxVmZmZ2hF8qzMzM7Ai/VJiZmdkRfqkwMzOzI/xSYWZmZke8zUvFz58//1z9h3PZWqYb92mqc43Oe+pZrOZBfLanmo9W6+3arfOq/ip315/l79a/0ufO3tU9jN/dp7o5ELda74rdWif3dXJVMbt9jMxy3lFTdfMjbjYqo7WRat9qvo/4nQr8/VzxYN2D7j7gp536gAn7snGC5sNnxb9PrZq/SvN2x0y2B6Ojsy+LiSOqYqr5E7L/rRHmdz7DUX/d3mdxo75Hdvd1ITcHau08v8pq39qLjo7dfZVq/9W8M6PPG/MnP5+r+OslGx04TzVIr1U13/E2f6MmDhFbyeaoGz/KsWqW62QtYL74k6p6Ol/thSxfV9wXc0M1Tyv1aJQPZjUpxmX7qpjZ3izXKXfmVlfP1N2fzc/mcL2q20t0Yh/EvdkeyPJnql5UVrPTF+5ne2f3hPmIcdwTf1KVc0fWx8yp2lSdM9PpN8uhuTvXwPv4k+L9zP9eKpCAYiKurRQY0VqK+XmYrCeuqe5cJtbIakKVr6pNo5wZjY24N8bofLzWOYpznRjo7INqvrIanxnlwFoG8dm+OKf3nesTkG/mVL1OLdLzrtJ+s+c1m8vWR2J8N1eMi7CW7e/MdfdlRnFYyyC+U1PvO9eA+wjrMQ44l+0hraNirk8Sn0X2bNTuus7junIlZtQXfPnHH2yIQ5Pp2qiRFVpL75GfNbQu4+5Q5Y7zuI/nZ49Rtld/jiAm2885fS6g8/xZ9XUH1uNYxT0xD0cH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ezxPjiPMxJsv9NL9QmJmZeps/qDn6oh2tXdXNHeN2esr2ZHkzWe1ZD7P1iLU7e6oXil+/fv25MjOz78YvFc3cMQ73UcyTxVSyvZzLauM+zqvRWmZUr8IXC79ImJkZPPqPP1a/+N4NetcRxXXGZHMKz2UEe97h2fllwszM1KO/U9H9f8d3foF2c8e4E/tmObAOWcxo7yxvZVTPzMxs5rHfqci++DCXjaehB/S62gv3VUY5OZ/FMG+2l2s7sG93r5mZ2eN/poJGX4ZXvihnZrnjOu5nED/aF+tpLOOqmCxvjDUzM3vC27xUmJmZ2Wf7uL/8yszMzN6TXyrMzMzsCL9UmJmZ2RF+qTAzM7Mj/FJhZmZmB/z48Q88RhiF0s8qpwAAAABJRU5ErkJggg==" alt="" />

解决代码及点评


/************************************************************************/
/*
20. 找出 M×N 数组中所有不相邻元素,
并求出它们的和(相邻的数:前一个是偶数,后一个是素数)。 */
/************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h> bool IsOdd(int num)
{
return (bool)(num%2);
}
bool IsSS20(int num)
{
if (num<2)
{
return false;
}
else if (num==2)
{
return true;
}
else if (num==3)
{
return true;
}
else
{
for (int i=2;i<=sqrt((double)num);i++)
{
if (num%i==0)
{
return false;
}
}
return true;
}
}
void main()
{
const int N=10;
const int M=10;
int arr[N][M]={0};
for (int i=0;i<N;i++)
{
for (int j=0;j<M;j++)
{
arr[i][i]=rand()%100;
}
}
int * brr=&arr[0][0];
int sum=0;
if (!IsOdd(*(brr)&&IsSS20(*(brr+1))))
{
sum+=*(brr);
printf("%5d",*(brr));
}
for (int i=1;i<M*N-1;i++)
{ int flag=1;
if (!IsOdd(*(brr+i)&&IsSS20(*(brr+i+1))))
{
flag=0; }
if (!IsOdd(*(brr+i-1)&&IsSS20(*(brr+i))))
{
flag=0; }
if (flag==1)
{
sum+=(*(brr+i));
printf("%5d",*(brr+i));
} } if (!IsOdd(*(brr+M*N-1)&&IsSS20(*(brr+M*N-2))))
{
sum+=*(brr+M*N-1);
printf("%5d",*(brr+M*N-1)); }
printf("\n和为:%d",sum);
system("pause");
}

代码编译以及运行

由于资源上传太多,资源频道经常被锁定无法上传资源,同学们可以打开VS2013自己创建工程,步骤如下:

1)新建工程

基于visual Studio2013解决C语言竞赛题之0520相邻元素

2)选择工程

基于visual Studio2013解决C语言竞赛题之0520相邻元素

3)创建完工程如下图:

基于visual Studio2013解决C语言竞赛题之0520相邻元素

4)增加文件,右键点击项目

基于visual Studio2013解决C语言竞赛题之0520相邻元素

5)在弹出菜单里做以下选择

基于visual Studio2013解决C语言竞赛题之0520相邻元素

6)添加文件

基于visual Studio2013解决C语言竞赛题之0520相邻元素

7)拷贝代码与运行

基于visual Studio2013解决C语言竞赛题之0520相邻元素

程序运行结果

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqUAAAG6CAYAAAAxsD/hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACVpSURBVHhe7d0JvB1lfTfw/80mOwQlJEBfa+sClSVskUUECRCUAFpX3MCltta2CCgqra3vh4JiEaHapu0rGqmK9nV5cQEVAkEFi7JvpfrayquELCwiEJKQ5L7zzJm5mXsy59x7sz0Rvt/bP2fmmWfmeWZOPj0/59xz7sBgIRpOOOGEagkAADaOb3zjG9VSx1AoTWF0YGAgXnrkzDjsiFkxZcrOZQcAANhQli97LO664+b4zMUXR4qhdTgtQ2kKpJMn7xjvPvXMWBqTyg0AALCxTNtuUpx79l/Hww8/VAbTMpSeeOKJ8Zd/85FYOvCMqhsAAGxc07adGGee8edx2WWXxcDxxx8/ePDBh8Uhx/5htRkAADaNhT+9Jb7whUs6ofRvzv67eHxwYrUJAAA2jd1/Z0q8461v6ITST3/2i3HPr5ZUmwAAYNPYfbedylA6rlqPAaWUUkoppTZx1YbulP70vgeqJgAA2DSev+uzhr99/7MFD1abAABg03jeLs8cHkr/7/0PVZsAAJ4aHn/08fjpf/53PPzwo1XLxjd58r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xWL3cfv61PU71PL8192/TbP7V379dvLABg0xpzKG2+8Le90I/Fuhwr9VmfMUfS69hpfs1KRjuP7n3r/Zvq82rbNhrrul8vzbl2V5vmtnq5+/q09anVfevr0L1vWm/u27a9fmxW3ZY0xwMANi/rdaf0qWpDh5fuoFSHpKY0Zq9xU/9NHai659usddG9f/d6fX71dWieb+rTff5pvd43qbfX+9ZVtzX7AgCbnzGF0l7hYF2s67FSn3UdczR6HTvNd12DTT3nZo1F6t8cv+3abUjd82yuN9tHkvrVc+3et3s9aS43jba9rV/3detertdrvdpHK/f+ALAxjR8/PiZNmhTPeMak2GKLZ8R2224b22+/XUyevEPsuOPk2GabraueYzfqUJpeJHuFg6bRvKiO9lhtRjp2L937da/X86nb6211e/f2pN851H2Sep9mjVUaK1Xat9+466OeV3N+9Zht+p1Hv20jSftuiP1T1detrqT5WC8DACMbN25czDrm6HjPqafGR849Jy668IL41Ccviq9/7Stx2603FUF1i6rnOtjQf9Gp33qvtrbq1S+1j/YYOap7fv3Oo6091Uj79Ns31bqMmarX8futt22r27of+1W9X3ffkdab7W37N2u0x1JKKaVUp9JfdJozZ07515see+yxwaVLnxh85x/90eDninx42WWXDdW8efMGf/zjHw/+7Gf/Vby+/nDwlltuG/yHf/yHMf1Fpw36O6Xdd52614sQ0PfOVNpeP/bql9r7HWNzMJpzbDPStvq46bFf31rq06xebUla7jXvsV7ven7d8+1VdZ/mY1N33+Z63dZv/yT1696W1uv9AYCRpe8nveATF8YfvupVxevoS2PGjINi//0PjOc97wWx005Ty+81XVcb9Mvz+xlt/7Eed3PXdj79zrF7W1pP2vr3Ok6/449WPW4v63v8TaXf9Us2xLUCgKeq7i/PHzdufBx91MzYfffdixC6U9UrYtq0afHsZz87XrjnPnHffQvW6cvz1zmUAgDw1NYWSt9z6l/EoYceGjtMnlz1ithmm21i2223jcmTn7XOodRXQgEAMCob8+17oRQAgFHZmJ++F0oBABi1WbNmxfHHHx/HFI91zXjRi+I5v/d7VY91I5QCADAq6e370894b8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UgToRQAgL7qQNqtbmuG0bZ+oyGUAgDQV9td0tHUWAilAAD01SuUJvXj+hJKAQDoa+nSpetUYzEwe/bswYvnXhoPLRusmoa74aqvxcyZM6s1AAAYm9122y3uue/Ram24HbcYiLefctLIoXT3XbetlgAAYN2sdygFAICNpQ6lfqcUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshj59DwAAOQx9JVS1DgAAGUT8fyJGNiCO3PsTAAAAAElFTkSuQmCC" alt="" />




基于visual Studio2013解决C语言竞赛题之0520相邻元素的更多相关文章

  1. 基于visual Studio2013解决C语言竞赛题之1085相邻之和素数

        题目 解决代码及点评 /************************************************************************/ /* ...

  2. 基于visual Studio2013解决C语言竞赛题之1067间隔排序

        题目 解决代码及点评 /* 功能:间隔元素排序.用随机函数产生25个[25,75]之间的整数, 把它送到一维数组M中. 要求对M[I],M[I+J],M[I+2*J],-这些元 ...

  3. 基于visual Studio2013解决C语言竞赛题之0401阶乘

      题目 解决代码及点评 这个是一道经典的教科书题目,基本上每本基础的c/c++语言教科书都会有这个题目 用来演示循环语句 #include <stdio.h> #include ...

  4. 基于visual Studio2013解决C语言竞赛题之0205位数求和

     题目

  5. 基于visual Studio2013解决C语言竞赛题之0201温度转换

    题目 解决代码及点评 #include <stdio.h> #include <stdlib.h> void main() { float f; float c; float ...

  6. 基于visual Studio2013解决C语言竞赛题之0409 100以内素数

       题目 解决代码及点评 在已经知道素数是怎么判断的基础上,增加循环,可以判断出100以内的素数 /******************************************* ...

  7. 基于visual Studio2013解决C语言竞赛题之0408素数

      题目 解决代码及点评 判断一个数是不是素数的方法,一般是看n是不是能被n以内的某个整数(1除外)整除 为了提高效率,这个整数范围一般缩小到n的平方根 如果在这个范围内的整数都不能整除,那么 ...

  8. 基于visual Studio2013解决C语言竞赛题之0407最大值最小值

      题目 解决代码及点评 这道题考察循环和比较 /*********************************************************************** ...

  9. 基于visual Studio2013解决C语言竞赛题之0406数列求和

      题目 解决代码及点评 这个题目,还是考察for循环的使用 以及数列规律,该数列的特点是第n个分子 = 第n-1个分子 + 第n-2个分子,分母也是此规律 而另外一个规律是第n个分子和第n- ...

随机推荐

  1. egret3D与2D混合开发,画布尺寸不一致的问题

    egret3d的GUI目前还没有,在做3d游戏的时候没有UI可用,只能使用egret2d的EUI组件库,egret3d与egret2d混合开发,canvas3d的大小与位置与canvas2d并没有重合 ...

  2. 《Entity Framework 6 Recipes》中文翻译系列 &lpar;15&rpar; -----第三章 查询之与列表值比较和过滤关联实体

    翻译的初衷以及为什么选择<Entity Framework 6 Recipes>来学习,请看本系列开篇 3-8与列表值比较 问题 你想查询一个实体,条件是给定的列表中包含指定属性的值. 解 ...

  3. 利用最新版的RubyMine2016&period;2开发Ruby On Rails 程序

    经过我的前两篇博文 ”Ruby On Rails环境搭建“ 和”Ruby On Rails 环境搭建MySQL数据库连接“ 我们已经具备了开发Ruby On Rails程序的一切要素,但是天天对着do ...

  4. C&num;中的预处理器指令

    C#中有许多名为“预处理器指令”的命令.这些命令从来不会转化为可执行代码中的命令,但会影响编译过程的各个方面. 例如,使用预处理器指令可以禁止编译器编译代码的某一部分.如果计划发布两个版本的代码,即基 ...

  5. android学习ProgressBar的简单使用

    android 提供的ProgressBar控件分为两种,一种是不带进度的进度条,一种是带进度的进度条,如果可以计算任务的完成量那么就用带进度条的,如果无法计算任务量,那么就使用不带进度的进度条.Pr ...

  6. MySQL基数(索引基数)

    基数是数据列所包含的不同值的数量.例如,某个数据列包含值1.3.7.4.7.3,那么它的基数就是4. 索引的基数相对于数据表行数较高(也就是说,列中包含很多不同的值,重复的值很少)的时候,它的工作效果 ...

  7. threadid&equals;1&colon; thread exiting with uncaught exception &lpar;group&equals;0x40fca9a8&rpar;的问题

    今天在项目开发中碰到了这样一个问题: 项目在Nexus5[Android 6.0]上面运行正常,在华为荣耀6[Android 4.4.2]上面运行到指定activity崩溃(不是应用启动崩溃):然后后 ...

  8. 【UML】NO&period;47&period;EBook&period;5&period;UML&period;1&period;007-【UML 大战需求分析】- 部署图(Deployment Diagram)

    1.0.0 Summary Tittle:[UML]NO.47.EBook.1.UML.1.007-[UML 大战需求分析]- 部署图(Deployment Diagram) Style:Design ...

  9. javaSE习题 第三章 运算符、表达式和语句

    问答: 1.下列System.out.printf的结果是什么? int a=100,x,y; x=++a; y=a--; System.out.printf("%d,%d,%d" ...

  10. Windows Server2008 R2性能优化方法

    经常使用的是Windows 2008R2企业版的服务器,简单总结一下性能优化的方法 ========================================================== ...