#include<stdio.h>int main(){int num,count=0,i=0,ret=0;scanf("%d",&num);count=num;while(num>1){ num/=2; ret++;}printf("log2 of %d = %d\n",count,ret); r Read More
posted @ 2016-08-02 16:13 A-inspire Views(4232) Comments(0) Diggs(0) Edit
#include<stdio.h>int main(){int num,count=0,i=0;scanf("%d",&num);printf("num++=%d\n",num++);printf("num=%d\n",num);printf("++num=%d\n",++num);printf(" Read More
posted @ 2016-08-02 15:44 A-inspire Views(141) Comments(0) Diggs(0) Edit
#include<stdio.h>int main(){int num,count=0,i=0;scanf("%d",&num);num/=10;count++;while(num>0){ num/=10; count++;}printf("%d\n",count);return 0;}//注意:在 Read More
posted @ 2016-08-02 15:32 A-inspire Views(1528) Comments(0) Diggs(0) Edit
#include<stdio.h>int main(){int score,grade;scanf("%d",&score);grade=score/10;switch (grade){case 10:case 9: printf("A\n"); break;case 8: printf("B\n" Read More
posted @ 2016-08-02 15:14 A-inspire Views(1480) Comments(0) Diggs(0) Edit
#include<stdio.h>int main(){int num;int a,b,c,result,d,result1;scanf("int%d",&num);//scanf 的东西必须是要输入的: 内容!!!a=num/100;b=num%10;c=num%100/10;d=num/10%1 Read More
posted @ 2016-08-02 14:34 A-inspire Views(170) Comments(0) Diggs(0) Edit
#include<stdio.h>int main(){int num;int a,b,c,result,d,result1;scanf("%d",&num);a=num/100;b=num%10;c=num%100/10;d=num/10%10;printf("%d %d %d\n",a,b,c) Read More
posted @ 2016-08-02 14:28 A-inspire Views(2314) Comments(0) Diggs(0) Edit
#include<stdio.h>/*void change(int m,int n){ int t; t=m; m=n; n=t;}*/int main(){//交换两杯水,需要一个空杯子,临时保存作用int a=5;int b=6;int t;//scanf("%d%d",&a,&b);t=a; Read More
posted @ 2016-08-02 14:06 A-inspire Views(470) Comments(0) Diggs(0) Edit
#include<stdio.h> int main(){printf("请分别输入身高的英尺和英寸," "如输入\"5 7\"表示5英尺7英寸:\n");int foot;double inch;scanf("%d %lf",&foot,&inch);printf("身高是%f米。\n",((fo Read More
posted @ 2016-08-02 13:41 A-inspire Views(198) Comments(0) Diggs(0) Edit
第六届蓝桥杯软件类省赛题解C++/Java 1[C++]、统计不含4的数字统计10000至99999中,不包含4的数值个数。答:暴力循环范围内所有数字判断一下就是了,答案是52488 1[Java]、三角形面积图中的所有小方格面积都是1。 那么,图中的三角形面积应该是多少呢?答:小学生题目吧,算一下 Read More
posted @ 2016-06-15 14:24 A-inspire Views(1612) Comments(0) Diggs(0) Edit
http://www.ishuo.cn/show/76437.htmlhttp://jingyan.baidu.com/article/d8072ac45d4f60ec95cefdaa.html Read More
posted @ 2016-02-19 13:24 A-inspire Views(166) Comments(0) Diggs(0) Edit