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

#T-SQL (削除) 99 (削除ここまで) 90 bytes

T-SQL (削除) 99 (削除ここまで) 90 bytes

Saved 9 bytes thanks to @t-clausen.dk

DECLARE @ INT=65z:PRINT REPLICATE(CHAR(@)+CHAR(IIF(@=90,65,@+1)),13)SET @+=1IF @<=90GOTO z

Ungolfed:

DECLARE @CurrCharacter INT = 65; --ASCII decimal for 'A'
WHILE (@CurrCharacter <=90) --ASCII decimal for 'Z'
BEGIN 
 PRINT REPLICATE(
 REPLACE(CHAR(@CurrCharacter)+CHAR(@CurrCharacter+1),'[','A')
 ,13); --Replicate the current character and its neighbor 13 times. If the neighbor is '[' (ASCII code 91) then replace it with 'A'.
 SET @CurrCharacter+=1; --Go to the next letter
END

#T-SQL (削除) 99 (削除ここまで) 90 bytes

Saved 9 bytes thanks to @t-clausen.dk

DECLARE @ INT=65z:PRINT REPLICATE(CHAR(@)+CHAR(IIF(@=90,65,@+1)),13)SET @+=1IF @<=90GOTO z

Ungolfed:

DECLARE @CurrCharacter INT = 65; --ASCII decimal for 'A'
WHILE (@CurrCharacter <=90) --ASCII decimal for 'Z'
BEGIN 
 PRINT REPLICATE(
 REPLACE(CHAR(@CurrCharacter)+CHAR(@CurrCharacter+1),'[','A')
 ,13); --Replicate the current character and its neighbor 13 times. If the neighbor is '[' (ASCII code 91) then replace it with 'A'.
 SET @CurrCharacter+=1; --Go to the next letter
END

T-SQL (削除) 99 (削除ここまで) 90 bytes

Saved 9 bytes thanks to @t-clausen.dk

DECLARE @ INT=65z:PRINT REPLICATE(CHAR(@)+CHAR(IIF(@=90,65,@+1)),13)SET @+=1IF @<=90GOTO z

Ungolfed:

DECLARE @CurrCharacter INT = 65; --ASCII decimal for 'A'
WHILE (@CurrCharacter <=90) --ASCII decimal for 'Z'
BEGIN 
 PRINT REPLICATE(
 REPLACE(CHAR(@CurrCharacter)+CHAR(@CurrCharacter+1),'[','A')
 ,13); --Replicate the current character and its neighbor 13 times. If the neighbor is '[' (ASCII code 91) then replace it with 'A'.
 SET @CurrCharacter+=1; --Go to the next letter
END
edited body
Source Link
S.Karras
  • 261
  • 1
  • 4

#T-SQL (削除) 99 (削除ここまで) 90 bytes

Saved 79 bytes thanks to @t-clausen.dk

DECLARE @ INT=65z:PRINT REPLICATE(CHAR(@)+CHAR(IIF(@=90,65,@+1)),13)SET @+=1IF @<=90GOTO z

Ungolfed:

DECLARE @CurrCharacter INT = 65; --ASCII decimal for 'A'
WHILE (@CurrCharacter <=90) --ASCII decimal for 'Z'
BEGIN 
 PRINT REPLICATE(
 REPLACE(CHAR(@CurrCharacter)+CHAR(@CurrCharacter+1),'[','A')
 ,13); --Replicate the current character and its neighbor 13 times. If the neighbor is '[' (ASCII code 91) then replace it with 'A'.
 SET @CurrCharacter+=1; --Go to the next letter
END

#T-SQL (削除) 99 (削除ここまで) 90 bytes

Saved 7 bytes thanks to @t-clausen.dk

DECLARE @ INT=65z:PRINT REPLICATE(CHAR(@)+CHAR(IIF(@=90,65,@+1)),13)SET @+=1IF @<=90GOTO z

Ungolfed:

DECLARE @CurrCharacter INT = 65; --ASCII decimal for 'A'
WHILE (@CurrCharacter <=90) --ASCII decimal for 'Z'
BEGIN 
 PRINT REPLICATE(
 REPLACE(CHAR(@CurrCharacter)+CHAR(@CurrCharacter+1),'[','A')
 ,13); --Replicate the current character and its neighbor 13 times. If the neighbor is '[' (ASCII code 91) then replace it with 'A'.
 SET @CurrCharacter+=1; --Go to the next letter
END

#T-SQL (削除) 99 (削除ここまで) 90 bytes

Saved 9 bytes thanks to @t-clausen.dk

DECLARE @ INT=65z:PRINT REPLICATE(CHAR(@)+CHAR(IIF(@=90,65,@+1)),13)SET @+=1IF @<=90GOTO z

Ungolfed:

DECLARE @CurrCharacter INT = 65; --ASCII decimal for 'A'
WHILE (@CurrCharacter <=90) --ASCII decimal for 'Z'
BEGIN 
 PRINT REPLICATE(
 REPLACE(CHAR(@CurrCharacter)+CHAR(@CurrCharacter+1),'[','A')
 ,13); --Replicate the current character and its neighbor 13 times. If the neighbor is '[' (ASCII code 91) then replace it with 'A'.
 SET @CurrCharacter+=1; --Go to the next letter
END
added 50 characters in body
Source Link
S.Karras
  • 261
  • 1
  • 4

#T-SQL 99(削除) 99 (削除ここまで) 90 bytes

DECLARE @ INT=65WHILE @<=90BEGIN PRINT REPLICATE(REPLACE(CHAR(@)+CHAR(@+1),'[','A'),13)SET @+=1 END

Saved 7 bytes thanks to @t-clausen.dk

DECLARE @ INT=65z:PRINT REPLICATE(CHAR(@)+CHAR(IIF(@=90,65,@+1)),13)SET @+=1IF @<=90GOTO z

Ungolfed:

DECLARE @CurrCharacter INT = 65; --ASCII decimal for 'A'
WHILE (@CurrCharacter <=90) --ASCII decimal for 'Z'
BEGIN 
 PRINT REPLICATE(
 REPLACE(CHAR(@CurrCharacter)+CHAR(@CurrCharacter+1),'[','A')
 ,13); --Replicate the current character and its neighbor 13 times. If the neighbor is '[' (ASCII code 91) then replace it with 'A'.
 SET @CurrCharacter+=1; --Go to the next letter
END

#T-SQL 99 bytes

DECLARE @ INT=65WHILE @<=90BEGIN PRINT REPLICATE(REPLACE(CHAR(@)+CHAR(@+1),'[','A'),13)SET @+=1 END

Ungolfed:

DECLARE @CurrCharacter INT = 65; --ASCII decimal for 'A'
WHILE (@CurrCharacter <=90) --ASCII decimal for 'Z'
BEGIN 
 PRINT REPLICATE(
 REPLACE(CHAR(@CurrCharacter)+CHAR(@CurrCharacter+1),'[','A')
 ,13); --Replicate the current character and its neighbor 13 times. If the neighbor is '[' (ASCII code 91) then replace it with 'A'.
 SET @CurrCharacter+=1; --Go to the next letter
END

#T-SQL (削除) 99 (削除ここまで) 90 bytes

Saved 7 bytes thanks to @t-clausen.dk

DECLARE @ INT=65z:PRINT REPLICATE(CHAR(@)+CHAR(IIF(@=90,65,@+1)),13)SET @+=1IF @<=90GOTO z

Ungolfed:

DECLARE @CurrCharacter INT = 65; --ASCII decimal for 'A'
WHILE (@CurrCharacter <=90) --ASCII decimal for 'Z'
BEGIN 
 PRINT REPLICATE(
 REPLACE(CHAR(@CurrCharacter)+CHAR(@CurrCharacter+1),'[','A')
 ,13); --Replicate the current character and its neighbor 13 times. If the neighbor is '[' (ASCII code 91) then replace it with 'A'.
 SET @CurrCharacter+=1; --Go to the next letter
END
added 46 characters in body
Source Link
S.Karras
  • 261
  • 1
  • 4
Loading
added 245 characters in body
Source Link
S.Karras
  • 261
  • 1
  • 4
Loading
Source Link
S.Karras
  • 261
  • 1
  • 4
Loading

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