Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#R, (削除) 88 (削除ここまで)(削除) 83 (削除ここまで)(削除) 77 (削除ここまで)(削除) 71 (削除ここまで) 70 bytes

R, (削除) 88 (削除ここまで)(削除) 83 (削除ここまで)(削除) 77 (削除ここまで)(削除) 71 (削除ここまで) 70 bytes

(削除) I'm sure that this can be improved (削除ここまで) ... and it was with credit to @flodel. A further couple of bytes saved thanks to a suggestion from @njnnja and another from @J.Doe

x=y=1:100;y[3*x]='Fizz';y[5*x]='Buzz';y[15*x]='FizzBuzz';write(y[x],1)

#R, (削除) 88 (削除ここまで)(削除) 83 (削除ここまで)(削除) 77 (削除ここまで)(削除) 71 (削除ここまで) 70 bytes

(削除) I'm sure that this can be improved (削除ここまで) ... and it was with credit to @flodel. A further couple of bytes saved thanks to a suggestion from @njnnja and another from @J.Doe

x=y=1:100;y[3*x]='Fizz';y[5*x]='Buzz';y[15*x]='FizzBuzz';write(y[x],1)

R, (削除) 88 (削除ここまで)(削除) 83 (削除ここまで)(削除) 77 (削除ここまで)(削除) 71 (削除ここまで) 70 bytes

(削除) I'm sure that this can be improved (削除ここまで) ... and it was with credit to @flodel. A further couple of bytes saved thanks to a suggestion from @njnnja and another from @J.Doe

x=y=1:100;y[3*x]='Fizz';y[5*x]='Buzz';y[15*x]='FizzBuzz';write(y[x],1)
added 33 characters in body
Source Link
MickyT
  • 12.3k
  • 2
  • 27
  • 49

#R, (削除) 88 (削除ここまで) (削除) 83 (削除ここまで) (削除) 77 (削除ここまで) 71(削除) 71 (削除ここまで) 70 bytes

(削除) I'm sure that this can be improved (削除ここまで) ... and it was with credit to @flodel. A further couple of bytes saved thanks to a suggestion from @njnnja and another from @J.Doe

x=y=1:100;y[3*x]='Fizz';y[5*x]='Buzz';y[15*x]='FizzBuzz';write(y[x],''1)

#R, (削除) 88 (削除ここまで) (削除) 83 (削除ここまで) (削除) 77 (削除ここまで) 71 bytes

(削除) I'm sure that this can be improved (削除ここまで) ... and it was with credit to @flodel. A further couple of bytes saved thanks to a suggestion from @njnnja

x=y=1:100;y[3*x]='Fizz';y[5*x]='Buzz';y[15*x]='FizzBuzz';write(y[x],'')

#R, (削除) 88 (削除ここまで) (削除) 83 (削除ここまで) (削除) 77 (削除ここまで) (削除) 71 (削除ここまで) 70 bytes

(削除) I'm sure that this can be improved (削除ここまで) ... and it was with credit to @flodel. A further couple of bytes saved thanks to a suggestion from @njnnja and another from @J.Doe

x=y=1:100;y[3*x]='Fizz';y[5*x]='Buzz';y[15*x]='FizzBuzz';write(y[x],1)
Shorter answer to same question in "R language"
Source Link
MickyT
  • 12.3k
  • 2
  • 27
  • 49

#R, (削除) 88 (削除ここまで) (削除) 83 (削除ここまで) 77(削除) 77 (削除ここまで) 71 bytes

(削除) I'm sure that this can be improved (削除ここまで) ... and it was with credit to @flodel.

x=1:100;i=!x%%3;j=!x%%5;x[i]="Fizz";x[j]="Buzz";x[i&j]="FizzBuzz";write(x,"")

I don't have enough reputation to add a comment so I hope I'll be forgiven for editing here instead A further couple of adding a new answer. How about 74 bytes: saved thanks to a suggestion from @njnnja

x=y=1:100;y[3*x]='Fizz';y[5*x]='Buzz';y[15*x]='FizzBuzz';cat100;y[3*x]='Fizz';y[5*x]='Buzz';y[15*x]='FizzBuzz';write(y[x],sep='\n''')

#R, (削除) 88 (削除ここまで) (削除) 83 (削除ここまで) 77 bytes

(削除) I'm sure that this can be improved (削除ここまで) ... and it was with credit to @flodel.

x=1:100;i=!x%%3;j=!x%%5;x[i]="Fizz";x[j]="Buzz";x[i&j]="FizzBuzz";write(x,"")

I don't have enough reputation to add a comment so I hope I'll be forgiven for editing here instead of adding a new answer. How about 74 bytes:

x=y=1:100;y[3*x]='Fizz';y[5*x]='Buzz';y[15*x]='FizzBuzz';cat(y[x],sep='\n')

#R, (削除) 88 (削除ここまで) (削除) 83 (削除ここまで) (削除) 77 (削除ここまで) 71 bytes

(削除) I'm sure that this can be improved (削除ここまで) ... and it was with credit to @flodel. A further couple of bytes saved thanks to a suggestion from @njnnja

x=y=1:100;y[3*x]='Fizz';y[5*x]='Buzz';y[15*x]='FizzBuzz';write(y[x],'')
Loading
deleted 91 characters in body
Source Link
flodel
  • 2.4k
  • 16
  • 16
Loading
added 95 characters in body
Source Link
flodel
  • 2.4k
  • 16
  • 16
Loading
added 50 characters in body
Source Link
MickyT
  • 12.3k
  • 2
  • 27
  • 49
Loading
Post Undeleted by MickyT
Post Deleted by MickyT
Source Link
MickyT
  • 12.3k
  • 2
  • 27
  • 49
Loading

AltStyle によって変換されたページ (->オリジナル) /