Skip to main content
Commonmark migration
Source Link

#R, 59 56 bytes

R, 59 56 bytes

for(x in utf8ToInt(scan(,'')))cat(rep(';',x),'#',sep="")

Try it online!

#R, 59 56 bytes

for(x in utf8ToInt(scan(,'')))cat(rep(';',x),'#',sep="")

Try it online!

R, 59 56 bytes

for(x in utf8ToInt(scan(,'')))cat(rep(';',x),'#',sep="")

Try it online!

deleted 28 characters in body
Source Link
Giuseppe
  • 29.4k
  • 3
  • 33
  • 106

#R, 59 bytes

`for`(x,utf8ToInt(scan(,'')),cat(c(rep(';',x),'#'),sep=''))

reads from stdin. Loops through the ascii values of the input, replicating ';' that many times, appending a '#', and printing.59 56 bytes

for(x in utf8ToInt(scan(,'')))cat(rep(';',x),'#',sep="")

Try it online!Try it online!

#R, 59 bytes

`for`(x,utf8ToInt(scan(,'')),cat(c(rep(';',x),'#'),sep=''))

reads from stdin. Loops through the ascii values of the input, replicating ';' that many times, appending a '#', and printing.

Try it online!

#R, 59 56 bytes

for(x in utf8ToInt(scan(,'')))cat(rep(';',x),'#',sep="")

Try it online!

Source Link
Giuseppe
  • 29.4k
  • 3
  • 33
  • 106

#R, 59 bytes

`for`(x,utf8ToInt(scan(,'')),cat(c(rep(';',x),'#'),sep=''))

reads from stdin. Loops through the ascii values of the input, replicating ';' that many times, appending a '#', and printing.

Try it online!