![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
文章平均质量分 58
星星星星星哈
这个作者很懒,什么都没留下…
展开
-
java-表达式求值(初级)
question description 设计一个表达式求值的程序 ,支持+,-,*,/,%,(,)以及=运算符组成的表达式的运算。假设数字只包含int和float,并且全部的表达式都是正确的。注意表达式向上cast:除法 1/3=0,1.0/2=0.5int+float=float表达式最后的=可以包含也可以不包含sample inpput and output样例1 input: 1+1.0 output:2.0样例2 input: (55)%11(9+2) output: 33样.原创 2021-06-16 19:33:49 · 2033 阅读 · 1 评论 -
算法导论oj汇总
Remove K digitsDescriptionA set has the following elements: 1, and x. If x is in the set, then (2 * x + 1) and (4 * x + 5) are also in the set.For example, because 1 is in the set, 3=(2 * 1 + 1) and 9=(4 * 1 + 5 )are also in the set.Take out the smal原创 2021-05-20 12:14:51 · 1016 阅读 · 0 评论