Skip to main content
deleted 15 characters in body
Source Link
bebe
  • 4.2k
  • 2
  • 20
  • 21

#C++ 82 this code is at least legitimate

int a(uint32_t i,uint32_t r=0,uint32_t h=0)   // i hate this part
{return i?r&h?0:a(i/10,r|h,1<<i%10):1;}        // i likethanks thisto partDreamWarrior

#C 47 this works if you compile it in debug mode or provide two more arguments set to 0

a(i,r,h){return i?r&h?0:a(i/10,r|h,1<<i%10):1;}

#C++ 82 this code is at least legitimate

int a(uint32_t i,uint32_t r=0,uint32_t h=0)   // i hate this part
{return i?r&h?0:a(i/10,r|h,1<<i%10):1;}       // i like this part

#C 47 this works if you compile it in debug mode or provide two more arguments set to 0

a(i,r,h){return i?r&h?0:a(i/10,r|h,1<<i%10):1;}

#C++ 82 this code is at least legitimate

int a(uint32_t i,uint32_t r=0,uint32_t h=0)
{return i?r&h?0:a(i/10,r|h,1<<i%10):1;}        // thanks to DreamWarrior

#C 47 this works if you compile it in debug mode or provide two more arguments set to 0

a(i,r,h){return i?r&h?0:a(i/10,r|h,1<<i%10):1;}
Source Link
bebe
  • 4.2k
  • 2
  • 20
  • 21

#C++ 82 this code is at least legitimate

int a(uint32_t i,uint32_t r=0,uint32_t h=0)   // i hate this part
{return i?r&h?0:a(i/10,r|h,1<<i%10):1;}       // i like this part

#C 47 this works if you compile it in debug mode or provide two more arguments set to 0

a(i,r,h){return i?r&h?0:a(i/10,r|h,1<<i%10):1;}