fork download
  1. #!/bin/bash
  2. # your code goes here
  3.  
  4. set -- 4
  5.  
  6. a=$[10**($1-1)]
  7. eval echo \$[${a//0/{+,']\ $[}1'}],
  8.  
Success #stdin #stdout 0s 5088KB
stdin
Standard input is empty
stdout
4, 3 1, 2 2, 2 1 1, 1 3, 1 2 1, 1 1 2, 1 1 1 1,