随笔分类 -  表达式求值

摘要:We have learned how to obtain the value of a polynomial when we were a middle school student. If f(x) is a polynomial of degree n, we can let ... 阅读全文
posted @ 2017-04-02 15:22 xushukui 阅读(163) 评论(0) 推荐(0) 编辑
摘要:描述 ACM队的mdd想做一个计算器,但是,他要做的不仅仅是一计算一个A+B的计算器,他想实现随便输入一个表达式都能求出它的值的计算器,现在请你帮助他来实现这个计算器吧。 比如输入:“1+2/4=”,程序就输出1.50(结果保留两位小数) 输入 第一行输入一个整数n,共有n组测试数据... 阅读全文
posted @ 2017-03-30 17:11 xushukui 阅读(200) 评论(0) 推荐(0) 编辑
摘要:The objective of the program you are going to produce is to evaluate boolean expressions as the one shown next: Expression: ( V | V ) & F & (... 阅读全文
posted @ 2017-03-23 16:47 xushukui 阅读(314) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示