Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Code Golf

Return to Answer

Commonmark migration
Source Link

Python 3, (削除) 58 (削除ここまで) (削除) 3513 (削除ここまで) (削除) 40 (削除ここまで) 39 bytes

lambda n,m:eval(f'0x{n}*0x{m}<0x{n*m}')

Looks like I had this idea two hours too late.

Thanks to @ØrjanJohansen for golfing off 1 byte!

Try it online!

Python 3, (削除) 58 (削除ここまで) (削除) 3513 (削除ここまで) (削除) 40 (削除ここまで) 39 bytes

lambda n,m:eval(f'0x{n}*0x{m}<0x{n*m}')

Looks like I had this idea two hours too late.

Thanks to @ØrjanJohansen for golfing off 1 byte!

Try it online!

Python 3, (削除) 58 (削除ここまで) (削除) 3513 (削除ここまで) (削除) 40 (削除ここまで) 39 bytes

lambda n,m:eval(f'0x{n}*0x{m}<0x{n*m}')

Looks like I had this idea two hours too late.

Thanks to @ØrjanJohansen for golfing off 1 byte!

Try it online!

added 63 characters in body
Source Link
Dennis
  • 211.7k
  • 41
  • 380
  • 830

Python 3, (削除) 58 (削除ここまで) (削除) 3513 (削除ここまで) 40(削除) 40 (削除ここまで) 39 bytes

lambda n,m:eval(f'0x{n}*0x{m}==0x<0x{n*m}')

Looks like I had this idea two hours too late.

Try it online! Thanks to @ØrjanJohansen for golfing off 1 byte!

Try it online!

Python 3, (削除) 58 (削除ここまで) (削除) 3513 (削除ここまで) 40 bytes

lambda n,m:eval(f'0x{n}*0x{m}==0x{n*m}')

Looks like I had this idea two hours too late.

Try it online!

Python 3, (削除) 58 (削除ここまで) (削除) 3513 (削除ここまで) (削除) 40 (削除ここまで) 39 bytes

lambda n,m:eval(f'0x{n}*0x{m}<0x{n*m}')

Looks like I had this idea two hours too late.

Thanks to @ØrjanJohansen for golfing off 1 byte!

Try it online!

added 19 characters in body
Source Link
Dennis
  • 211.7k
  • 41
  • 380
  • 830

Python 2 Python 3, (削除) 58 (削除ここまで) 44(削除) 3513 (削除ここまで) 40 bytes

lambda n,m:eval('0x%u*0x%u==0x%u'%(f'0x{n,}*0x{m,}==0x{n*m)}')

Looks like I had this idea two hours too late.

Try it online! Try it online!

Python 2, (削除) 58 (削除ここまで) 44 bytes

lambda n,m:eval('0x%u*0x%u==0x%u'%(n,m,n*m))

Looks like I had this idea two hours too late.

Try it online!

Python 3, (削除) 58 (削除ここまで) (削除) 3513 (削除ここまで) 40 bytes

lambda n,m:eval(f'0x{n}*0x{m}==0x{n*m}')

Looks like I had this idea two hours too late.

Try it online!

added 121 characters in body
Source Link
Dennis
  • 211.7k
  • 41
  • 380
  • 830
Loading
deleted 12 characters in body
Source Link
Dennis
  • 211.7k
  • 41
  • 380
  • 830
Loading
Source Link
Dennis
  • 211.7k
  • 41
  • 380
  • 830
Loading

AltStyle によって変換されたページ (->オリジナル) /