基于visual Studio2013解决C语言竞赛题之0611素数排序
题目
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkkAAAAtCAYAAAC6ev9RAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAA1HSURBVHhe7Z2JjiTHDUS1/nFBX247gA0gHOaVVdU9PbN8AFGZPILM7FWrsB6Pfv37v/y1LMuyLMuy/A//+v1clmVZlmVZhH1JWpZlWZZlCfj4l6Rfv379Xl1nolHlTGd4YtZX8I65oh6TvlnOK2auZpz2O5kry31CIyLKPakHT8x22rOj06viHrs620nd3Z53epFK40pNxpUacLUuYqI17Rflqe+Ozl2geWoVXfwprsxR1SD2rtnBt/2bJF6UX5b6NZ75O5CHH9ua5E/zPhHeycSI+3yfkcW7ulcSfXbTeb5y7jtgbrfKD3StZP4nqP65gv/0xypRo6b4nrzqn22dg1b5ga6VzD/lk76/eObIvgOvuEtoqrnP9/RNeHrWTK/q08Vop2e7y8f/4DYvxS+wG5t1TuTPtD0301QmOe+E81yZ66QmyoXPYY7P5fWR3l0izarPNN992E95og5Ec4FIM8ojmY7CHH+SicYVpn3Un63BpF7J/GDap9IgJzn+JJWGxrCuyDRI1afipK7LnWhN+0V56st04J8ymWOCz5LNlnG3voN6/nQ0DqKarPYdHL8kVcM+fZBMb9rH805mv9N7khOBOuL1jJ3o+hync03ydWaCmqp3VEOynG6OjKyX9sFa8zymTH3gCf/Eh72D+NVaZ5rPPM/xGU6YzEd8Tuy7Z4TmdFBD9bROe2mOctIHVPnRDID9lWom4LGqr5NpkqqvonmTdUaXg7iCXPVpL6J6kxmewOesiGae8uRZortRH9f6JJ7zFYxfkqLBSRW7Q3Yxlf8U6Lge95FelO908YhshmpdkeVN68Eklzn6BO6LdJgLNK75We0VXFfJ5nP/1Aee8E980R5MeyhdnLAHyGaZak3ItDp/FL87V6fpcezBtOd0PuoC75fNArK453Z7MPUB9WdrpdKutE7RHlVPXyv0d/2j2hOqW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0otUuVlNRqYFpr0dzznpobnZWsn8GVF+16fqcSVW9aj0IjItMO3teM5JD83N1iTTWJZlAT/ub5KAfvFxTfhFOfVPQV1mEfB3X8xRTldXnYH+KIe6We0p0JmaQ9+VOeFnjhLVwOd5UW3Faf53gfc4MYe+6M6xj/wEfuYoUQ18nhfVVkQay7Is5Ef+4LbnsM7rK39HpJOR9c1gf8+JdEiV2+lFupE/g/pgku9oP+Aa2Ty6z2od11CyGLVB1n9CpgNUy3WzPpUeyOqcTqeDfajjGhrXmO6zWsc1lCxGbdDpL8uyKN/qJWlZlmVZluVd/Mj/uW1ZlmVZluUu+5K0LMuyLMsSsC9Jy7Isy7Is/8dff/0Hk2qMN03XIioAAAAASUVORK5CYII=" alt="" />
解决代码及点评
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/*
判断整数n是否为质数
是:返回1
否:返回0
*/
int isPrimeNum1(int n)
{
int isPrime = 1;
if (n == 1)
{
return 0;
}
for (int i = 2; i <= (int)(sqrt((double)n)); i++)
{
if (n % i == 0)
{
isPrime = 0;
break;
}
}
return isPrime;
}
// 排序采用冒泡进行
void sort1(int *a,int n)
{
for (int i = 0; i < n - 1; i++)
{
for (int j = i + 1; j < n; j++)
{
if (a[i] > a[j])
{
a[i] = a[i] ^ a[j];
a[j] = a[i] ^ a[j];
a[i] = a[i] ^ a[j];
}
}
}
} void main()
{
const int N = 20;
int a[N];
int index = 0;
int data;
for (int i = 0; i< N;i++)
{
scanf_s("%d",&data); // 输入数字
if (isPrimeNum1(data)) // 判断是否素数,如果是则保存在a数组中
{
a[index++] = data;
}
} sort1(a,index); // 对a数组进行排序
for (int i = 0; i < index; i++) // 打印数组
{
printf("%-3d",a[i]);
}
printf("\n");
system("pause");
}
代码编译以及运行
由于资源上传太多,资源频道经常被锁定无法上传资源,同学们可以打开VS2013自己创建工程,步骤如下:
1)新建工程
2)选择工程
3)创建完工程如下图:
4)增加文件,右键点击项目
5)在弹出菜单里做以下选择
6)添加文件
7)拷贝代码与运行
程序运行结果
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqUAAAG6CAYAAAAxsD/hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACn1SURBVHhe7d0JvF5lfSfw596EGJYoxJqNdGZsrUtlCVtkkUW2oAbQuiAugMvHqdOOFrW4Vet8qChWUVqnaTuiEbXotKN2VFDZghVsKgKyWGrLdJiWEHJZxAgkIcmd85z3nJvzvjnve967Pje532/6933P85znOc97Xj73/nree88dGM6EijPOOKN4BgAAk+MLX/hC8axlJJTGMDowMBBedOJJ4dgTVoQFCxbmOwAAwETZvOmX4a47bgmfu+yyEGNoGU7zUBoD6X77zQ+/844LwuNhTt4BAACTZfFT54SLLvxQeOSRh/NgmofSM888M3zgDz8aHh94SrEbAABMrsXz9ggXvOu/htWrV4eB008/ffioo44NR5/2W0U3AABMjfU/uzV8+cuXt0LpH174x+Gx4T2KLgAAmBrP/dUF4S1vfG0rlH72838V7v73oaILAACmxnOXPiMPpYPFdhhQSimllFJqiqs0cqX0Z/c9WDQBAMDUePb+v9L+8f0/r3uo6AIAgKnxG0ue3h5K/+X+h4suAIDdw2MbHws/+6d/DY88srFomXz77TcvPPs5zwx7z9s737aG1hq6edbi+aMLpdf87RXFs9H5teccGP7Ts38zDA6O/PgqAMCUuOnvbgnLDvr1sGDh04uWybfhgYfCbbffE44+9tB82xpaa+hmp1B6z/pHiq56A489UDyrNzgwEAYGB0L8o6XxT0bFir539bXhhSteFvbcc698GwBgqlz7vZvCype+MDz8i8eLlsk3/6l7hW99+wfhpFOPzretobWGbn590X4dv30fQ2WPOnjZsp514MEHhwMOPCgceNBB4aDsedmeywJq3ZzTrh68Nvz3938ifP/Bmr7Jruqxp8s66vontYbC9//0neFvflrXp5RSSo2t8gtnU1h1x5uuayh/BX7HdtFX9y/vi7tXH4sx5b9iO1a/r7k0cqX0Xzc8WjTVO/zZi8KaG+4Kf3HDz8Lg7O1hcI/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UAgDQU91V0n5qNIRSAAB66hZKo/JxvIRSAAB6evzxx8dUozGwcuXK4ctWXxEe3jRcNLVbe83XwkknnVRsAQDA6CxdujTcfd/GYqvd/LkD4c3nnd0cSp+7/7ziGQAAjM24QykAAEyWMpT6mVIAAJITSgEASE4oBQAgOaEUAIDkhFIAAJIb+e17AABIYeSWUMU2AAAkEML/B0D/Iou9tkriAAAAAElFTkSuQmCC" alt="" />
基于visual Studio2013解决C语言竞赛题之0611素数排序的更多相关文章
- 基于visual Studio2013解决C语言竞赛题之0408素数
题目 解决代码及点评 判断一个数是不是素数的方法,一般是看n是不是能被n以内的某个整数(1除外)整除 为了提高效率,这个整数范围一般缩小到n的平方根 如果在这个范围内的整数都不能整除,那么 ...
- 基于visual Studio2013解决C语言竞赛题之0515国名排序
题目
- 基于visual Studio2013解决C语言竞赛题之0506选择排序
题目
- 基于visual Studio2013解决C语言竞赛题之0904文件排序
题目
- 基于visual Studio2013解决C语言竞赛题之0809链表排序
题目
- 基于visual Studio2013解决C语言竞赛题之1026判断排序
题目 解决代码及点评 /********************************************************************** ...
- 基于visual Studio2013解决C语言竞赛题之1023判断排序
题目 解决代码及点评 /* 23. 有10个两位整数,把这些数作以下变化,如果它是素数, 则把它乘以2,若它是偶数则除以2,其余的数减1, 请将变化后的10个数按从小到大 ...
- 基于visual Studio2013解决C语言竞赛题之1056素数序列
题目 解决代码及点评 /* 56. 编程序求3至39之间满足下列条件的各组素数:每组有3个素数,第2个比第一个大2,第3个比第2个大4.例如 5,7,11就是满足条件的一组. 要求: ...
- 基于visual Studio2013解决C语言竞赛题之1067间隔排序
题目 解决代码及点评 /* 功能:间隔元素排序.用随机函数产生25个[25,75]之间的整数, 把它送到一维数组M中. 要求对M[I],M[I+J],M[I+2*J],-这些元 ...
随机推荐
- c#中使用log4net工具记录日志
首先,去官网下载log4net工具 链接http://logging.apache.org/log4net/download_log4net.cgi 目前最新的版本 log4net-1.2.15-bi ...
- BZOJ 2190 仪仗队
这道题的关键就是找到所有的点中,x与y互质的点,第一反应必定是暴搜,稍想一下可以从中分开求一半,但范围仍然限定了这条路行不通,仔细画了几张图后发现下图中从第三行起第k行可连fai k个, ...
- Java学习01
Java学习01 第一章 1.JRE与JDK JDK(JAVA Develop Kit,JAVA开发工具包)提供了Java的开发环境和运行环境,主要用于开发JAVA程序,面向Java程序的开发者; J ...
- centos6.5配置163的yum源
CentOS系统自带的更新源的速度实在是慢,为了让CentOS6使用速度更快的YUM更新源,可以选择163(网易)的更新源. 1.下载repo文件 wget http://mirrors.163.co ...
- DataReader的例子
前: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DataReader对 ...
- cmake 学习笔记(二)
在 Cmake学习笔记一 中通过一串小例子简单学习了cmake 的使用方式. 这次应该简单看看语法和常用的命令了. 简单的语法 注释 # 我是注释 命令语法 COMMAND(参数1 参数2 ...) ...
- java学习之观察者设计模式
package com.gh.observer; import java.util.Observable; /** * 被观察者对象 * 必须继承被观察者抽象类 * @author ganhang * ...
- source code of MES Data
<HTML> <HEAD> <TITLE>TELOGS</TITLE> </HEAD> <BODY> <?php /* c ...
- Python高级之Socket 探索(五)
目录: 面向对象 反射 socket 一.面向对象 方法 方法包括:普通方法.静态方法和类方法,三种方法在内存中都归属于类,区别在于调用方式不同. 普通方法:由对象调用:至少一个self参数:执行普通 ...
- Dispatcher & Redirect
首先理解一下二者的含义:Dispatcher请求转发,直接把客户端的请求在服务器处理以后跳转到下一个页面或者是处理类.此时的地址栏上的URL是不会变化的. Redirect是重定向.客户端的请求到达服 ...