摘要: 首先贴一下题目:Given a tree, you are supposed to list all the leaves in the order of top down, and left to right.Input Specification:Each input file contains... 阅读全文
posted @ 2014-12-21 17:16 聪明的聪聪 阅读(426) 评论(1) 推荐(1) 编辑
摘要: 首先粘一下题目:二分法求函数根的原理为:如果连续函数f(x)在区间[a, b]的两个端点取值异号,即f(a)f(b) 2 #include 3 4 #define EPS (1e-3)// 注意事项1 5 using namespace std; 6 7 double a3, a2, a1, ... 阅读全文
posted @ 2014-12-21 14:20 聪明的聪聪 阅读(476) 评论(2) 推荐(0) 编辑