Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

edited body
Source Link
hakr14
  • 5.5k
  • 1
  • 14
  • 19

Canvas, 13 bytes

 ̅-┴11⁄2+ ̅n ×ばつu┴ ̅n ×ばつ11⁄2+u

Try it here! Try it here!

Explanation:
 ̅-┴11⁄2+ ̅n ×ばつu┴ ̅n ×ばつ11⁄2+u | Full code (converted to half-width)
--------------+------------------------------------
 ̅-┴ | Convert input from base 60
 11⁄2+   ̅n ̅]÷ | AddPush .5125/108
  ̅n ̅]÷ ×ばつ | Push 125/108
 | Multiply
 ×ばつ11⁄2+ | MultiplyAdd .5
 u | Floor

Canvas, 13 bytes

 ̅-┴11⁄2+ ̅n ×ばつu

Try it here!

Explanation:
 ̅-┴11⁄2+ ̅n ×ばつu | Full code (converted to half-width)
--------------+------------------------------------
 ̅-┴ | Convert input from base 60
 11⁄2+  | Add .5
  ̅n ̅]÷ | Push 125/108
 ×ばつ | Multiply
 u | Floor

Canvas, 13 bytes

 ̅-┴ ̅n ×ばつ11⁄2+u

Try it here!

Explanation:
 ̅-┴ ̅n ×ばつ11⁄2+u | Full code (converted to half-width)
--------------+------------------------------------
 ̅-┴ | Convert input from base 60
  ̅n ̅]÷ | Push 125/108
 ×ばつ | Multiply
 11⁄2+ | Add .5
 u | Floor
Source Link
hakr14
  • 5.5k
  • 1
  • 14
  • 19

Canvas, 13 bytes

 ̅-┴11⁄2+ ̅n ×ばつu

Try it here!

Explanation:
 ̅-┴11⁄2+ ̅n ×ばつu | Full code (converted to half-width)
--------------+------------------------------------
 ̅-┴ | Convert input from base 60
 11⁄2+ | Add .5
 ̅n ̅]÷ | Push 125/108
 ×ばつ | Multiply
 u | Floor

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