Skip to main content
Commonmark migration
Source Link

##Actually, 14 bytes

Actually, 14 bytes

:70a\\u9ukm'** 

Try it online!

Takes advantage of the fact that 0 views and 0 answers is impossible, and thus ceil(v/a) > 0.

Explanation:

:70a\\u9ukm'** :70 push 70 ([70 a v]) a invert stack ([v a 70]) \\ integer division twice ([v//a//70]) u add 1 ([v//a//70 + 1]) 9uk push 10, make stack into list ([[v//a//70+1, 10]]) m minimum of list '** push "*", repeat 

##Actually, 14 bytes

:70a\\u9ukm'** 

Try it online!

Takes advantage of the fact that 0 views and 0 answers is impossible, and thus ceil(v/a) > 0.

Explanation:

:70a\\u9ukm'** :70 push 70 ([70 a v]) a invert stack ([v a 70]) \\ integer division twice ([v//a//70]) u add 1 ([v//a//70 + 1]) 9uk push 10, make stack into list ([[v//a//70+1, 10]]) m minimum of list '** push "*", repeat 

Actually, 14 bytes

:70a\\u9ukm'** 

Try it online!

Takes advantage of the fact that 0 views and 0 answers is impossible, and thus ceil(v/a) > 0.

Explanation:

:70a\\u9ukm'** :70 push 70 ([70 a v]) a invert stack ([v a 70]) \\ integer division twice ([v//a//70]) u add 1 ([v//a//70 + 1]) 9uk push 10, make stack into list ([[v//a//70+1, 10]]) m minimum of list '** push "*", repeat 
Source Link
user45941
user45941

##Actually, 14 bytes

:70a\\u9ukm'** 

Try it online!

Takes advantage of the fact that 0 views and 0 answers is impossible, and thus ceil(v/a) > 0.

Explanation:

:70a\\u9ukm'** :70 push 70 ([70 a v]) a invert stack ([v a 70]) \\ integer division twice ([v//a//70]) u add 1 ([v//a//70 + 1]) 9uk push 10, make stack into list ([[v//a//70+1, 10]]) m minimum of list '** push "*", repeat