2012年5月30日

摘要: 栈Time Limit:1000MSMemory Limit:65535KBSubmissions:1021Accepted:476Description建立顺序栈或链栈,编写程序实现十进制数到二进制数的转换。Input输入只有一行,就是十进制整数。Output转换后的二进制数。Sample Input10Sample Output1010解法一:链栈# include<stdio.h>//链栈# include<malloc.h># define Len sizeof(struct node)# define N 100typedef int ElemType;typ 阅读全文

posted @ 2012-05-30 21:59 即为将军 阅读(329) 评论(0) 推荐(0)

方程式

摘要: 方程式DescriptionConsider equations having the following form: a*x1*x1 + b*x2*x2 + c*x3*x3 + d*x4*x4 = 0 a, b, c, d are integers from the interval [-50,50] and any of them cannot be 0. It is consider a solution a system ( x1,x2,x3,x4 ) that verifies the equation, xi is an integer from [-100,100] and x. 阅读全文

posted @ 2012-05-30 20:34 即为将军 阅读(261) 评论(0) 推荐(0)

导航