04 2013 档案

摘要:头文件都是:#include<algorithm>qsort篇qsort(a,len,sizeof(type),mycmp)//注释a:待排序的数组地址len:待排序的数组的长度type:待排序的数组元素的类型mycmp:自定义的排序函数 1 /****************一维数组类比较函数************ 2 int mycmp(const void *a,const void *b) 3 { 4 return *(int *)a - *(int *)b; 5 } 6 //注 char、float、double型数组时 7 //只需将return中的int改成相应的类 阅读全文
posted @ 2013-04-19 17:01 天天AC 阅读(203) 评论(0) 推荐(0)
摘要:楼天城是杭州人,姚期智教授的得意门生,正是姚教授发现他的才能后把他引上了现在的研究方向,并大力举荐他参加国际学术会议和比赛。在网络上他被称为“楼教主”,清华同学则简称他“教主”。2001年11月,全国青少年信息学联赛(浙江赛区)一等奖。2002年08月,全国青少年信息学竞赛三等奖。2002年10月,全国高中数学联赛(浙江赛区)一等奖。2002年11月,全国青少年信息学联赛一等奖,浙江赛区第1名。2003年08月,全国青少年信息学竞赛一等奖,入选国家集训队。2003年10月,全国高中数学联赛一等奖。2003年11月,全国青少年信息学联赛一等奖。2004年05月,国家队选拔赛第一名。2004年0. 阅读全文
posted @ 2013-04-06 10:38 天天AC 阅读(3550) 评论(2) 推荐(1)
摘要:#include<cstdio>#include<cstring>#include<iostream>#include<algorithm>usingnamespace std;int main(){int n0, cs =0;while(scanf("%d",&n0)!= EOF && n0 ){int n1, n2, n3, n4, odd; n1 =3* n0;if( n1 %2==0){ odd =0; n2 = n1 /2;}else{ odd =1; n2 =(n1 +1)/2;} n3 = 阅读全文
posted @ 2013-04-05 10:29 天天AC 阅读(142) 评论(0) 推荐(0)
摘要:#include<stdio.h>#include<stdlib.h>voidrecord(int**p,unsignedintk)//记录数据文件中读出的数……{inti=k/32/5000;//p[i]intj=(k-i*5000*32)/32;//p[i][j]intm=k%32;//p[i][j]的第m位intn=1;//用1代表数k,0则表示文件数据中没有数kn<<=m;//确定位置,如12,第一个数p[0][0]的第12位为1,33则为第2个数p[0][1]的第33-32位为1,5001则p[1][0]的第1位为1*(*(p+i)+j)|=n;} 阅读全文
posted @ 2013-04-04 21:27 天天AC 阅读(357) 评论(0) 推荐(0)
摘要:#include <algorithm>#include <iostream>#include<stdio.h>using namespace std;bool cmp(int a,int b){ if (a<b) return true; return false;}int n,m,num[50010];int main(){ int max,min,i,L,mid; while(scanf("%d%d%d",&L,&n,&m)!=EOF) { max=L;min=0;for(i=1;i<=n;i++ 阅读全文
posted @ 2013-04-03 19:49 天天AC 阅读(139) 评论(0) 推荐(0)
摘要:gpedit.msc-----组策略 sndrec32-------录音机 Nslookup-------IP地址侦测器explorer-------打开资源管理器 logoff---------注销命令tsshutdn-------60秒倒计时关机命令 lusrmgr.msc----本机用户和组services.msc---本地服务设置 oobe/msoobe /a----检查XP是否激活notepad--------打开记事本 clea... 阅读全文
posted @ 2013-04-02 22:18 天天AC 阅读(759) 评论(0) 推荐(0)
摘要:一、Windows键 + 空格键“Space”[作用]:透明化所有窗口,快速查看桌面(并不切换)[快捷键]:win+空格二、Windows键 + D[作用]:最小化所有窗口,并切换到桌面,再次按又重新打开刚才的所有窗口[快捷键]:win+d三、Windows键 + tab键[作用]:传说中的3D桌面展示效果[快捷键]:win+tab四、Windows键 +ctrl键+tab键[作用]:3D桌面浏览并锁定(可截屏)[快捷键]:win+ctrl+tab五、Windows键 + 数字键[作用]:针对固定在快速启动栏中的程序,按照数字排序打开相应程序[快捷键]:win+数字(1-9)六、Windows 阅读全文
posted @ 2013-04-02 22:15 天天AC 阅读(462) 评论(0) 推荐(0)