自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Belle_Chou的博客

菜鸟程序媛

  • 博客(6)
  • 问答 (1)
  • 收藏
  • 关注

原创 3*n+1

#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>int main(){ int n; scanf("%d",&n); int count=0; while(n>1) { if(n%2==1) { n=3*n+1;

2016-11-30 10:31:28 425

原创 阶乘之和(取结果的模)

#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){ int n,i,j; int x=0; int f; scanf("%d",&n); for(i=1;i<=n;i++) { f=1; for(j=1;j<=i;j++)

2016-11-30 10:07:39 1618

原创 aabb类型的完全平方数

#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){ int n,m; for(n=1;n<=9;n++) { for(m=0;m<=9;m++) { double x=n*1100+m*11; double y=sqrt(x); if(floor(y+0.5

2016-11-30 09:39:57 886

原创 判断闰年C语言实现

#include <stdio.h>#include <stdlib.h>int main(){int n; while(scanf("%d",&n)!=EOF) { if((n%4==0&&n%100!=0)||n%400==0) { printf("%d是闰年\n",n); } else printf

2016-11-30 09:19:02 747 3

原创 浅谈溢出

#include <stdio.h>#include <stdlib.h>#include <math.h>#define MAX_INT ((unsigned)(-1) >> 1)#define MIN_INT (MAX_INT + 1)int main(){ int n=2147483647; printf("%d",n+1); return 0;}输出:-2147

2016-11-29 21:50:55 333

原创 int类型的范围

int类型应该是-32768~32767因为0在原码中分为+0和-0 ,假设int是2个byte 则+0:0000000000000000 而-0:1000000000000000取补码后 +0: 0000000000000000 -0 : 0000000000000000 (原码取反加一)这样0在补码中只有一种而任何数的原码在转成补码都不会是1000000000000000 所以

2016-11-29 21:09:06 1020

空空如也

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

TA关注的人

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