自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 2020-12-22

#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> void huiwen() { int i,j,length; char a[100]; scanf("%s",a); length=strlen(a); for(i=0,j=length-1;i<=j;i++,j--) { if(a[i]!=a[j]) { break; } }

2020-12-22 22:50:34 116

原创 快速排序

#include<stdio.h> #include<stdlib.h> #include<time.h> int kuaipai(int *n,int low,int high) { int key; n[0]=n[low]; key=n[low]; while(low<high) { while(low<high&&n[high]>=key) { --high; } n[low]=n[high];

2020-12-22 21:22:06 124 3

原创 查找

#include<stdio.h> #include<stdlib.h> int sq(int x,int a[]) { for(int i=0;i<5;i++) { if(x==a[i]) { printf("yes"); break; } if(i==4) { printf("no"); break; } } return 0; } int erfen(int x,int a[]) { int low,high,mi

2020-12-22 21:21:10 108

原创 进制转换

nclude<stdio.h> #include<math.h> #include<stdlib.h> char a[16]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}; char b[1000]={0}; void change(int n,int r) { int i=0; if(n<0) { printf("-"); n=fabs(n); while(n)

2020-12-22 21:19:04 99

原创 HDU母牛的故事

HDU 母牛的故事 #include<stdio.h> #include<malloc.h> #include<string.h> int fun(int n) { if(n<=4) { return n; } else { return fun(n-1)+fun(n-3); } } int main() { int n,a; while(scanf("%d",&n)) { if(n>0) { a=fun(n)

2020-11-24 16:58:16 123

原创 HDU 回文的判断

AC代码 #include<stdio.h> #include<string.h> int main() { int n; scanf("%d",&n); while(n–) { char a[100]; int i,j; scanf("%s",a); int length=strlen(a); for(i=0,j=length-1;i<=j;i++,j–) { if(a[i]!=a[j]) { break; } } if(i<=j) { printf(“no\n

2020-11-24 16:54:23 118

空空如也

空空如也

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

TA关注的人

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