![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
2013年王道论坛研究生机试练习赛(一)
leizh007
这个作者很懒,什么都没留下…
展开
-
第4题
题目地址:http://ac.jobdu.com/problem.php?cid=1041&pid=3C语言源码:#include#includetypedef struct tree{ int data; struct tree *lchild,*rchild;}tree;tree *create(tree *root,int i){ tree *p,*q; p=(t原创 2013-02-23 15:57:09 · 305 阅读 · 2 评论 -
第1题
题目地址:http://ac.jobdu.com/problem.php?cid=1041&pid=0C语言源码:#include#include#define maxsize 100char s[maxsize][maxsize];int main(){ int i,j,n1,n2,n3,n,k; char a[maxsize]; while(scanf("%s",a)!原创 2013-02-23 15:54:38 · 163 阅读 · 0 评论 -
第2题
题目地址:http://ac.jobdu.com/problem.php?cid=1041&pid=1C语言源码:#includeint max(int a,int b){ while(a&&b) { if(a>b) a=a%b; else b=b%a; } if(a==0) return b; else return a;}int main(原创 2013-02-23 15:55:34 · 122 阅读 · 0 评论 -
第3题
题目地址:http://ac.jobdu.com/problem.php?cid=1041&pid=2C语言源码:#includeint main(){ int a,b,numa,numb; scanf("%d %d",&a,&b); while(a||b) { b=a-b; numa=0; while(a) { a=a/2; numa+=a;原创 2013-02-23 15:56:21 · 172 阅读 · 0 评论