摘要: 编写程序判断以下给出的整数序列是否为最小堆。Description第一行是元素的个数n;第二行是n个整数序列。Input如果是小根堆,输出Yes,否者输出No。Output123 10100 86 48 73 35 39 42 57 66 2... 阅读全文
posted @ 2015-06-15 22:21 soldierwing 阅读(307) 评论(0) 推荐(0) 编辑
摘要: Description:Consider 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]... 阅读全文
posted @ 2015-06-15 21:27 soldierwing 阅读(239) 评论(0) 推荐(0) 编辑