this function adds numer N to a map and initialized the values of class members. */
| 55 | public: |
| 56 | /*this function adds numer N to a map and initialized the values of class members. */ |
| 57 | mindsum(ll _n, ll _d) { |
| 58 | n = _n; |
| 59 | d = _d; |
| 60 | min = n; |
| 61 | op = 0; |
| 62 | op_min = 0;//LONG_MAX; |
| 63 | oc.insert({{n,false}}); |
| 64 | } |
| 65 | |
| 66 | void findMinSum() { |
| 67 | recurse(digitsum(n),1); |