zoukankan      html  css  js  c++  java
  • Nine Digits Expression

    Problem:

    Insert + ,-,*,/ signs as necessary in the string 123456789 to form an expression that evaluates to a certain number.

    Answer:

    It returns:

    Solutions 1:    1*2345*6/7+8-9=2009
    Solutions 2:    1/2*3*4*5*67+8-9=2009
    Solutions 3:    1*2/3*45*67+8-9=2009
    3 solutions were found!

    Solutions 1:    9*8-7+6*54*3*2*1=2009
    Solutions 2:    9+8*7+6*54*3*2*1=2009
    Solutions 3:    9*8-7+6*54*3*2/1=2009
    Solutions 4:    9+8*7+6*54*3*2/1=2009
    4 solutions were found!

  • 相关阅读:
    Asp.Net Mvc Filter
    使用 EntityFramework后把一个对象序列化成json字符串引起循环引用的问题
    RCTF2020 calc & EasyBlog & swoole
    GKCTF-EzWeb+redis未授权访问
    BJD3rd
    http走私
    网鼎杯2020青龙组 web writeup
    De1CTF 2020 部分web
    js相关trick总结
    xss常见编码解析
  • 原文地址:https://www.cnblogs.com/fengju/p/6336215.html
Copyright © 2011-2022 走看看