自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (1)
  • 收藏
  • 关注

原创 第十二届蓝桥杯大赛软件赛省赛C/C++ B组(c语言编写)

图片和一些思路都参考了网上的,如有不对,自行修改。小蓝准备用 256MB 的内存空间开一个数组,数组的每个元素都是 32 位二进制整数,如果不考虑程序占用的空间和维护内存需要的辅助空间,请问256MB 的空间可以存储多少个 32 位二进制整数?涉及知识点:计算机基础知识思路: 32位二进制占用4个字节,1MB=1024KB,1KB=1024B答案:67108864#include <stdio.h>#include <stdlib.h>int main(){

2022-03-16 17:56:44 1036

原创 杭州电子科技大学acm1000题-1001

/*Problem DescriptionHey, welcome to HDOJ(Hangzhou Dianzi University Online Judge).In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.InputThe input will consist of a series of integers n, one integer per line.OutputFor each ca

2020-12-14 19:55:55 602

原创 杭州电子科技大学acm1000题-1000

/*Problem DescriptionCalculate A + B.InputEach line will contain two integers A and B. Process to end of file.OutputFor each case, output A + B in one line.Sample Input1 1Sample Output2*/#include <stdio.h>#include <stdlib.h>

2020-12-14 19:50:17 1017

原创 算法:直接插入排序insertSort

好好编程,天天向上日日进步,诸君共鉴#include <stdio.h>#include <stdlib.h>void insertSort(int arr[],int n)//传入数组地址,元素个数{ int i,j; for(i=0;i<n-1;i++)//第一层循环:有n个元素循环n-1次 { if(arr[i+1]<arr[i])//当后面的数小于前面的数才有插入 { int t

2020-11-23 20:03:59 332 1

原创 算法:快速排序quickSort

好好编程,天天向上日日进步,诸君共鉴#include <stdio.h>#include <stdlib.h>void quickSort(int arr[],int left,int right){ if(left<right)//left和right为左右边界的下标 { int i =left,j = right;//i,j的位置会改变 int base = arr[left];//将基准保存,留下一个空位

2020-11-22 21:09:48 66

原创 算法:冒泡排序bubbleSort(二)

好好编程,天天向上日日进步,诸君共鉴#include <stdio.h>#include <stdlib.h>void bubbleSort(int arr[], int n)//得到数组地址,元素个数{ int i,j,temp,done; i=0; done =1;//在某一趟中没有交换则证明已经排序完毕 while(i<n-1&&done) { done = 0; for(

2020-11-22 17:10:12 210

原创 算法:冒泡排序bubbleSort(一)

好好编程,天天向上日日进步,诸君共鉴#include <stdio.h>#include <stdlib.h>void bubbleSort(int arr[], int n)//得到数组地址,元素个数{ int i,j,temp; for(i=0;i<n-1;i++)//一共有n个元素,则执行n-1趟 { for(j=0;j<n-1-i;j++)//每执行一趟,交换的次数j随i减少,为n-1-i次交换

2020-11-22 16:12:58 258

Java课程设计-音乐时钟

Java课程设计。可使用eclipse,myeclipse打开。包含动态时钟显示,BGM音乐播放,便签显示,闹钟设置,背景颜色设置,闹钟响铃设置,番茄时钟。

2020-12-17

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除