Skip to main content
deleted 2 characters in body
Source Link
Tanj
  • 269
  • 1
  • 3

[Julia]Julia, 101 bytes

g(h,t)=h>t?string("A","a"^(h-t),"h!"):string("B","o"^round(Int,(t-h)*2/3),"h","o"^round(Int,(t-h)/3))

Arguments to the function are taken in the order length of Hair, height of Tower.

[Julia], 101 bytes

g(h,t)=h>t?string("A","a"^(h-t),"h!"):string("B","o"^round(Int,(t-h)*2/3),"h","o"^round(Int,(t-h)/3))

Arguments to the function are taken in the order length of Hair, height of Tower.

Julia, 101 bytes

g(h,t)=h>t?string("A","a"^(h-t),"h!"):string("B","o"^round(Int,(t-h)*2/3),"h","o"^round(Int,(t-h)/3))

Arguments to the function are taken in the order length of Hair, height of Tower.

edited body
Source Link
Tanj
  • 269
  • 1
  • 3

[Julia], 101 bytes

g(h,t)=h>t?string("A","a"^(h-t),"h!"):string("B","o"^round(Int,(t-h)*2/3),"h","o"^round(Int,(t-h)/3))

Arguments to the function are taken in the order length of Hair, height of HowerTower.

[Julia], 101 bytes

g(h,t)=h>t?string("A","a"^(h-t),"h!"):string("B","o"^round(Int,(t-h)*2/3),"h","o"^round(Int,(t-h)/3))

Arguments to the function are taken in the order length of Hair, height of Hower.

[Julia], 101 bytes

g(h,t)=h>t?string("A","a"^(h-t),"h!"):string("B","o"^round(Int,(t-h)*2/3),"h","o"^round(Int,(t-h)/3))

Arguments to the function are taken in the order length of Hair, height of Tower.

Source Link
Tanj
  • 269
  • 1
  • 3

[Julia], 101 bytes

g(h,t)=h>t?string("A","a"^(h-t),"h!"):string("B","o"^round(Int,(t-h)*2/3),"h","o"^round(Int,(t-h)/3))

Arguments to the function are taken in the order length of Hair, height of Hower.