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

added 435 characters in body
Source Link
sergiol
  • 4.1k
  • 1
  • 17
  • 37

Tcl, 97 bytes

time {puts -nonewline [format %c [expr ([incr i]-1)%26+65]]
if int(sqrt($i))**2==$i puts\ ""} 676

Try it online!


Tcl , 100 bytes

Requires Tcl >= 8.7 to allow use of lseq
lmap i [lseq 676] {puts -nonewline [format %c [expr $i%26+65]]
if int(sqrt($i+1))**2==$i+1 puts\ ""}

Attempt This Online!

Tcl, 97 bytes

time {puts -nonewline [format %c [expr ([incr i]-1)%26+65]]
if int(sqrt($i))**2==$i puts\ ""} 676

Try it online!

Tcl, 97 bytes

time {puts -nonewline [format %c [expr ([incr i]-1)%26+65]]
if int(sqrt($i))**2==$i puts\ ""} 676

Try it online!


Tcl , 100 bytes

Requires Tcl >= 8.7 to allow use of lseq
lmap i [lseq 676] {puts -nonewline [format %c [expr $i%26+65]]
if int(sqrt($i+1))**2==$i+1 puts\ ""}

Attempt This Online!

deleted 9 characters in body
Source Link
sergiol
  • 4.1k
  • 1
  • 17
  • 37

Tcl, 9897 bytes

time {puts -nonewline [format %c [expr ([incr i]-1)%26+65]]
if int(sqrt($i))**2==$i {putsputs\ ""}} 676

Try it online! Try it online!

Tcl, 98 bytes

time {puts -nonewline [format %c [expr ([incr i]-1)%26+65]]
if int(sqrt($i))**2==$i {puts ""}} 676

Try it online!

Tcl, 97 bytes

time {puts -nonewline [format %c [expr ([incr i]-1)%26+65]]
if int(sqrt($i))**2==$i puts\ ""} 676

Try it online!

deleted 9 characters in body
Source Link
sergiol
  • 4.1k
  • 1
  • 17
  • 37

Tcl, 10198 bytes

incr j
time {puts -nonewline [format %c [expr ([incr i]-1)%26+65]]
if $j**2==$iint(sqrt($i))**2==$i {puts ""
incr j}} 676

Try it online! Try it online!

Tcl, 101 bytes

incr j
time {puts -nonewline [format %c [expr ([incr i]-1)%26+65]]
if $j**2==$i {puts ""
incr j}} 676

Try it online!

Tcl, 98 bytes

time {puts -nonewline [format %c [expr ([incr i]-1)%26+65]]
if int(sqrt($i))**2==$i {puts ""}} 676

Try it online!

Source Link
sergiol
  • 4.1k
  • 1
  • 17
  • 37
Loading

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