Result

AC

Duration

1011ms

Code [DL]

define f
$(shell printf *%.s $$(seq 3 $(word $(1),$(strip $(STDIN)))))
endef
x=$(call f,2)
r:
	@echo -e '*$(x)*\n$(subst *,*$(subst *, ,$(x))*\n,$(call f,1))*$(x)*'

stdin

58
48

stdout

************************************************
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
*                                              *
************************************************

stderr