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

replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

C, (削除) 77 (削除ここまで) (削除) 74 (削除ここまで) 71 bytes

Basically the same as the Python answer inspired by LeakyNun Python answer inspired by LeakyNun, Thanks to owacoder for puts :

f(i,j){for(i=0;++i<27;puts(""))for(j=13;--j;printf("%c%c",i+64,i%26+65));}

Usage:

f();

(削除) While mathematically (26-n)%26 == (-n)%26, this is not true for C, otherwise these two bytes can be shaved off. (削除ここまで) Using a count up loop for i resolves the problem

C, (削除) 77 (削除ここまで) (削除) 74 (削除ここまで) 71 bytes

Basically the same as the Python answer inspired by LeakyNun, Thanks to owacoder for puts :

f(i,j){for(i=0;++i<27;puts(""))for(j=13;--j;printf("%c%c",i+64,i%26+65));}

Usage:

f();

(削除) While mathematically (26-n)%26 == (-n)%26, this is not true for C, otherwise these two bytes can be shaved off. (削除ここまで) Using a count up loop for i resolves the problem

C, (削除) 77 (削除ここまで) (削除) 74 (削除ここまで) 71 bytes

Basically the same as the Python answer inspired by LeakyNun, Thanks to owacoder for puts :

f(i,j){for(i=0;++i<27;puts(""))for(j=13;--j;printf("%c%c",i+64,i%26+65));}

Usage:

f();

(削除) While mathematically (26-n)%26 == (-n)%26, this is not true for C, otherwise these two bytes can be shaved off. (削除ここまで) Using a count up loop for i resolves the problem

added 41 characters in body
Source Link
Karl Napf
  • 4.5k
  • 14
  • 31

C, (削除) 77 (削除ここまで) 74(削除) 74 (削除ここまで) 71 bytes

Basically the same as the Python answer inspired by LeakyNun , Thanks to owacoder for puts:

f(i,j){for(i=0;++i<27;printfi=0;++i<27;puts("\n"""))for(j=13;--j;printf("%c%c",i+64,i%26+65));}

Usage:

f();

(削除) While mathematically (26-n)%26 == (-n)%26, this is not true for C, otherwise these two bytes can be shaved off. (削除ここまで) Using a count up loop for i resolves the problem

C, (削除) 77 (削除ここまで) 74 bytes

Basically the same as the Python answer inspired by LeakyNun:

f(i,j){for(i=0;++i<27;printf("\n"))for(j=13;--j;printf("%c%c",i+64,i%26+65));}

Usage:

f();

(削除) While mathematically (26-n)%26 == (-n)%26, this is not true for C, otherwise these two bytes can be shaved off. (削除ここまで) Using a count up loop for i resolves the problem

C, (削除) 77 (削除ここまで) (削除) 74 (削除ここまで) 71 bytes

Basically the same as the Python answer inspired by LeakyNun , Thanks to owacoder for puts:

f(i,j){for(i=0;++i<27;puts(""))for(j=13;--j;printf("%c%c",i+64,i%26+65));}

Usage:

f();

(削除) While mathematically (26-n)%26 == (-n)%26, this is not true for C, otherwise these two bytes can be shaved off. (削除ここまで) Using a count up loop for i resolves the problem

added 67 characters in body
Source Link
Karl Napf
  • 4.5k
  • 14
  • 31

C, 77(削除) 77 (削除ここまで) 74 bytes

Basically the same as the Python answer inspired by LeakyNun:

f(i,j){for(i=26;--i;printfi=0;++i<27;printf("\n"))for(j=13;--j;printf("%c%c",90-ii+64,(26-i)%26+65i%26+65));}

Usage:

f();

While mathematically (削除) While mathematically (26-n)%26 == (-n)%26, this is not true for C, otherwise these two bytes can be shaved off. (削除ここまで) Using a count up loop for (26-n)%26 == (-n)%26i, this is not true for C, otherwise these two bytes can be shaved off. resolves the problem

C, 77 bytes

Basically the same as the Python answer inspired by LeakyNun:

f(i,j){for(i=26;--i;printf("\n"))for(j=13;--j;printf("%c%c",90-i,(26-i)%26+65));}

Usage:

f();

While mathematically (26-n)%26 == (-n)%26, this is not true for C, otherwise these two bytes can be shaved off.

C, (削除) 77 (削除ここまで) 74 bytes

Basically the same as the Python answer inspired by LeakyNun:

f(i,j){for(i=0;++i<27;printf("\n"))for(j=13;--j;printf("%c%c",i+64,i%26+65));}

Usage:

f();

(削除) While mathematically (26-n)%26 == (-n)%26, this is not true for C, otherwise these two bytes can be shaved off. (削除ここまで) Using a count up loop for i resolves the problem

Source Link
Karl Napf
  • 4.5k
  • 14
  • 31
Loading

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