求大神指点,如果写代码,让这些公式显示>=50,<=1,且不重复
我想要的显示结果效果是这样的,如果公式相加>50的数字,不显示,最大50
如果公式相减<1的数字字,不显示,最小1
如果公式相减=负数,也那么不显示,
如果公式计算的结果相同,那么,只显示一次就好了,不要重复数字,求大神指点
n1+1
n4-8
n3+8
n3-10
n1+16
n6-8
n4+8
n4-5
n2-8
n1-8
n4+16
n4-20
n1-1
n6+8
n2-1
n2-20
n1-32
n3-1
n6-1
n3-8
n1+3
n1-5
n2+8
n2+24
n1-3
n1-16
n1-20
n5+3
n3+24
n3-5
n2+5
n3+20
n5-20
n5+5
n4+40
n6-5
n5+32
n4-1
n6+40
n4-32
n4+3
n5+40
n2-24
n1-40
n6+5
n5-40
n4+32
n4-16
n3-3
n3+40
n1+5
n2+20
n6+10
n6+32
n2+32
n2+40
n6-40
n6-16
n5-32
n2+10
n5+8
n4+24
n2+16
n2-40
n1-30
n5-3
n2-3
n1+20
n4-10
n1-10
n5-5
n2-5
n5-30
n1+24
n3+30
n5+24
n6+20
n6+24
n6-30
n5+10
n1+8
n2-30
n4+1
n6-20
n4-40
n2-32
n3-30
n3+3
n1-24
n6-32
n3+16
n3+1
n2-16
n5+30
n3+32
n5-10
n5-24
n3+10
n5+20
n2-10
n1+10
n3-40
n4+10
n4+30
n3+5
n5-16
n6+1
n4+5
n2+30
n4-30
n5-8
n6-24
n3-32
n5+16
n3-20
n6+30
n4+20
n5+1
n3-16
n1+30
n4-3
n6-10
n4-24
n2+3
n6+16
n2+1
n3-24
n6+3
n5-1
n1+32
n6-3
n1+40