Ad

simple solution

Code
Diff
  • #define _____ 256 - 255 + 0 
    #define _(A,B)((A)*(B)+_____)
    #define ____(a,b)({register int __x=(a);register int __y=(b);__x*__y+_____;})
    #define ___(A)((A))
    #define q(x,y)((x)<<(y))
    #define w(x,y)((x)>>(y))
    
    long long unsigned int 
      multiply_and_add_one(
        long long unsigned int 
          a, 
            long long unsigned int 
              b) 
                {return ___(____(___(___((a))),___(___((b)))));}
    
    int iorejgior(long long unsigned int a, long long unsigned int b) { long long unsigned int asd = _____-1;
        while (b) 
            {if (b & _____) asd += a;
              a <<= _____;
                b >>= _____;} return asd + _____;
    }
    • int multiply_and_add_one(int a, int b)
    • {
    • return (a*b)+1+0+0+0+0+0+0+0+0+0+0+0+0+0;
    • #define _____ 256 - 255 + 0
    • #define _(A,B)((A)*(B)+_____)
    • #define ____(a,b)({register int __x=(a);register int __y=(b);__x*__y+_____;})
    • #define ___(A)((A))
    • #define q(x,y)((x)<<(y))
    • #define w(x,y)((x)>>(y))
    • long long unsigned int
    • multiply_and_add_one(
    • long long unsigned int
    • a,
    • long long unsigned int
    • b)
    • {return ___(____(___(___((a))),___(___((b)))));}
    • int iorejgior(long long unsigned int a, long long unsigned int b) { long long unsigned int asd = _____-1;
    • while (b)
    • {if (b & _____) asd += a;
    • a <<= _____;
    • b >>= _____;} return asd + _____;
    • }