- 博客(6)
- 收藏
- 关注
原创 九度OJ--大整数排序
搞了将近半个小时才搞定这道题,好久不练了,手生了。#include#include#includeusing namespace std;const int maxn=1000+12;struct num{ char name[maxn]; int len;};num number[100+5];int cmp(const void *a,const
2012-06-20 22:54:18 360
原创 浙大复试上机--zoj 问题
#include#include#include#include#includeusing namespace std;const int maxn=1000+5;char str[maxn];int main(){ while(scanf("%s",str)!=EOF) { int len=strlen(str); int su
2012-02-26 11:24:40 257
原创 ICPC-ACM
#include#include#includeusing namespace std;int main(){ int k;scanf("%d",&k);if(k>3||k<3||k==3)printf("adhere to ICPC-ACM programming.\n"); return 0;}
2011-12-28 13:17:42 188
转载 Programming Contest Problem Types
Programming Contest Problem TypesHal Burch conducted an analysis over spring break of 1999 and made an amazing discovery: there are only 16 types of programming contest problems! Furthermore
2011-12-26 12:46:18 216
原创 堆和栈在内存分配方面有什么不同?
堆:一般由程序员分配和释放,如果程序员没有释放,则由操作系统释放。和数据结构中的堆不是一回事,分配方式类似于链表。可能用到的关键字:free,malloc,new,delete等。栈:一般由编译器分配和释放,存放函数的参数值,或者局部变量的值,操作方式类似于数据结构中的栈。
2011-12-25 21:03:39 197
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人