Skip to main content
Commonmark migration
Source Link

#24, SNOBOL4 (CSNOBOL4), 256 bytes

24, SNOBOL4 (CSNOBOL4), 256 bytes

.;*->+|a	"x"	a|+>-*;.
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input;* Henry Jams?
	X =INPUT
	OUTPUT =GT(SIZE(X),21)	1
	
	
	
	
	
	
	
	
	
	
	
	
	
end	
	ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234
	Hi, Retina!
	~

Try it online!

Prints out 1 for truthy and outputs nothing for falsey.

Satisfies:

  1. The first character is a ..
  2. It contains an e.
  3. Its length is even.
  4. Its length is a perfect square.
  5. It contains an a.
  6. It contains a > character.
  7. Contains the exact string ->.
  8. Contains the exact string Hi, Retina!.
  9. The sum of the first two Unicode code points is a multiple of 5.
  10. The 10-th character is a ".
  11. The last non-empty line does not have any duplicate characters.
  12. The first line is a palindrome of length > 5.
  13. The first line is exactly 21 characters long (not including newline).
  14. It contains a ?.
  15. It contains a |.
  16. Contains a +.
  17. It is at least 28 lines long.
  18. The following characters are used five times in total: !"#$.[\] and the codepoint of the second character is less than 60.
  19. Contains Henry Jams? as a continuous substring.
  20. The last character is ~.
  21. It contains a C
  22. Each line contains a tab character.
  23. The ninth line contains at least 22 characters, excluding the newline.

For future answers:

  • The first character is a ., and so is the 21st character (palindromic rule).
  • The 10th character is a ", and so is the 12th character (palindromic rule).
  • The first line is a palindrome of length 21.
  • The second character's Unicode code point, mod 5, is 4, and its code point is lower than 60 (the printables are ',1;6 and tab).
  • The last character is ~.
  • Its length is an even perfect square.
  • It is at least 28 lines long.
  • The ninth line must have at least 22 characters, excluding the newline.
  • The last non-empty line does not have any duplicate characters.
  • Contains the exact strings ->, Hi, Retina!, and Henry Jams?.
  • It contains |, + and C.
  • Each line contains a tab character.
  • Each program is now allowed only the 2 . and 2 " in the first line, and the ! in Hi, Retina!. Those characters cannot be used anywhere else, in addition to no uses of #$[\].

#24, SNOBOL4 (CSNOBOL4), 256 bytes

.;*->+|a	"x"	a|+>-*;.
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input;* Henry Jams?
	X =INPUT
	OUTPUT =GT(SIZE(X),21)	1
	
	
	
	
	
	
	
	
	
	
	
	
	
end	
	ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234
	Hi, Retina!
	~

Try it online!

Prints out 1 for truthy and outputs nothing for falsey.

Satisfies:

  1. The first character is a ..
  2. It contains an e.
  3. Its length is even.
  4. Its length is a perfect square.
  5. It contains an a.
  6. It contains a > character.
  7. Contains the exact string ->.
  8. Contains the exact string Hi, Retina!.
  9. The sum of the first two Unicode code points is a multiple of 5.
  10. The 10-th character is a ".
  11. The last non-empty line does not have any duplicate characters.
  12. The first line is a palindrome of length > 5.
  13. The first line is exactly 21 characters long (not including newline).
  14. It contains a ?.
  15. It contains a |.
  16. Contains a +.
  17. It is at least 28 lines long.
  18. The following characters are used five times in total: !"#$.[\] and the codepoint of the second character is less than 60.
  19. Contains Henry Jams? as a continuous substring.
  20. The last character is ~.
  21. It contains a C
  22. Each line contains a tab character.
  23. The ninth line contains at least 22 characters, excluding the newline.

For future answers:

  • The first character is a ., and so is the 21st character (palindromic rule).
  • The 10th character is a ", and so is the 12th character (palindromic rule).
  • The first line is a palindrome of length 21.
  • The second character's Unicode code point, mod 5, is 4, and its code point is lower than 60 (the printables are ',1;6 and tab).
  • The last character is ~.
  • Its length is an even perfect square.
  • It is at least 28 lines long.
  • The ninth line must have at least 22 characters, excluding the newline.
  • The last non-empty line does not have any duplicate characters.
  • Contains the exact strings ->, Hi, Retina!, and Henry Jams?.
  • It contains |, + and C.
  • Each line contains a tab character.
  • Each program is now allowed only the 2 . and 2 " in the first line, and the ! in Hi, Retina!. Those characters cannot be used anywhere else, in addition to no uses of #$[\].

24, SNOBOL4 (CSNOBOL4), 256 bytes

.;*->+|a	"x"	a|+>-*;.
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input;* Henry Jams?
	X =INPUT
	OUTPUT =GT(SIZE(X),21)	1
	
	
	
	
	
	
	
	
	
	
	
	
	
end	
	ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234
	Hi, Retina!
	~

Try it online!

Prints out 1 for truthy and outputs nothing for falsey.

Satisfies:

  1. The first character is a ..
  2. It contains an e.
  3. Its length is even.
  4. Its length is a perfect square.
  5. It contains an a.
  6. It contains a > character.
  7. Contains the exact string ->.
  8. Contains the exact string Hi, Retina!.
  9. The sum of the first two Unicode code points is a multiple of 5.
  10. The 10-th character is a ".
  11. The last non-empty line does not have any duplicate characters.
  12. The first line is a palindrome of length > 5.
  13. The first line is exactly 21 characters long (not including newline).
  14. It contains a ?.
  15. It contains a |.
  16. Contains a +.
  17. It is at least 28 lines long.
  18. The following characters are used five times in total: !"#$.[\] and the codepoint of the second character is less than 60.
  19. Contains Henry Jams? as a continuous substring.
  20. The last character is ~.
  21. It contains a C
  22. Each line contains a tab character.
  23. The ninth line contains at least 22 characters, excluding the newline.

For future answers:

  • The first character is a ., and so is the 21st character (palindromic rule).
  • The 10th character is a ", and so is the 12th character (palindromic rule).
  • The first line is a palindrome of length 21.
  • The second character's Unicode code point, mod 5, is 4, and its code point is lower than 60 (the printables are ',1;6 and tab).
  • The last character is ~.
  • Its length is an even perfect square.
  • It is at least 28 lines long.
  • The ninth line must have at least 22 characters, excluding the newline.
  • The last non-empty line does not have any duplicate characters.
  • Contains the exact strings ->, Hi, Retina!, and Henry Jams?.
  • It contains |, + and C.
  • Each line contains a tab character.
  • Each program is now allowed only the 2 . and 2 " in the first line, and the ! in Hi, Retina!. Those characters cannot be used anywhere else, in addition to no uses of #$[\].
added 3 characters in body
Source Link
Giuseppe
  • 28.8k
  • 3
  • 31
  • 105

SNOBOL4 (CSNOBOL4), 256 bytes

#24, SNOBOL4 (CSNOBOL4), 256 bytes

.;*->+|a	"x"	a|+>-*;.
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input;* Henry Jams?
	X =INPUT
	OUTPUT =GT(SIZE(X),21)	1
	
	
	
	
	
	
	
	
	
	
	
	
	
end	
	ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234
	Hi, Retina!
	~

Try it online!

Prints out 1 for truthy and outputs nothing for falsey.

Satisfies:

  1. The first character is a ..
  2. It contains an e.
  3. Its length is even.
  4. Its length is a perfect square.
  5. It contains an a.
  6. It contains a > character.
  7. Contains the exact string ->.
  8. Contains the exact string Hi, Retina!.
  9. The sum of the first two Unicode code points is a multiple of 5.
  10. The 10-th character is a ".
  11. The last non-empty line does not have any duplicate characters.
  12. The first line is a palindrome of length > 5.
  13. The first line is exactly 21 characters long (not including newline).
  14. It contains a ?.
  15. It contains a |.
  16. Contains a +.
  17. It is at least 28 lines long.
  18. The following characters are used five times in total: !"#$.[\] and the codepoint of the second character is less than 60.
  19. Contains Henry Jams? as a continuous substring.
  20. The last character is ~.
  21. It contains a C
  22. Each line contains a tab character.
  23. The ninth line contains at least 22 characters, excluding the newline.

For future answers:

  • The first character is a ., and so is the 21st character (palindromic rule).
  • The 10th character is a ", and so is the 12th character (palindromic rule).
  • The first line is a palindrome of length 21.
  • The second character's Unicode code point, mod 5, is 4, and its code point is lower than 60 (the printables are ',1;6 and tab).
  • The last character is ~.
  • Its length is an even perfect square.
  • It is at least 28 lines long.
  • The ninth line must have at least 22 characters, excluding the newline.
  • The last non-empty line does not have any duplicate characters.
  • Contains the exact strings ->, Hi, Retina!, and Henry Jams?.
  • It contains |, + and C.
  • Each line contains a tab character.
  • Each program is now allowed only the 2 . and 2 " in the first line, and the ! in Hi, Retina!. Those characters cannot be used anywhere else, in addition to no uses of #$[\].

SNOBOL4 (CSNOBOL4), 256 bytes

.;*->+|a	"x"	a|+>-*;.
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input;* Henry Jams?
	X =INPUT
	OUTPUT =GT(SIZE(X),21)	1
	
	
	
	
	
	
	
	
	
	
	
	
	
end	
	ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234
	Hi, Retina!
	~

Try it online!

Prints out 1 for truthy and outputs nothing for falsey.

Satisfies:

  1. The first character is a ..
  2. It contains an e.
  3. Its length is even.
  4. Its length is a perfect square.
  5. It contains an a.
  6. It contains a > character.
  7. Contains the exact string ->.
  8. Contains the exact string Hi, Retina!.
  9. The sum of the first two Unicode code points is a multiple of 5.
  10. The 10-th character is a ".
  11. The last non-empty line does not have any duplicate characters.
  12. The first line is a palindrome of length > 5.
  13. The first line is exactly 21 characters long (not including newline).
  14. It contains a ?.
  15. It contains a |.
  16. Contains a +.
  17. It is at least 28 lines long.
  18. The following characters are used five times in total: !"#$.[\] and the codepoint of the second character is less than 60.
  19. Contains Henry Jams? as a continuous substring.
  20. The last character is ~.
  21. It contains a C
  22. Each line contains a tab character.
  23. The ninth line contains at least 22 characters, excluding the newline.

For future answers:

  • The first character is a ., and so is the 21st character (palindromic rule).
  • The 10th character is a ", and so is the 12th character (palindromic rule).
  • The first line is a palindrome of length 21.
  • The second character's Unicode code point, mod 5, is 4, and its code point is lower than 60 (the printables are ',1;6 and tab).
  • The last character is ~.
  • Its length is an even perfect square.
  • It is at least 28 lines long.
  • The ninth line must have at least 22 characters, excluding the newline.
  • The last non-empty line does not have any duplicate characters.
  • Contains the exact strings ->, Hi, Retina!, and Henry Jams?.
  • It contains |, + and C.
  • Each line contains a tab character.
  • Each program is now allowed only the 2 . and 2 " in the first line, and the ! in Hi, Retina!. Those characters cannot be used anywhere else, in addition to no uses of #$[\].

#24, SNOBOL4 (CSNOBOL4), 256 bytes

.;*->+|a	"x"	a|+>-*;.
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input;* Henry Jams?
	X =INPUT
	OUTPUT =GT(SIZE(X),21)	1
	
	
	
	
	
	
	
	
	
	
	
	
	
end	
	ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234
	Hi, Retina!
	~

Try it online!

Prints out 1 for truthy and outputs nothing for falsey.

Satisfies:

  1. The first character is a ..
  2. It contains an e.
  3. Its length is even.
  4. Its length is a perfect square.
  5. It contains an a.
  6. It contains a > character.
  7. Contains the exact string ->.
  8. Contains the exact string Hi, Retina!.
  9. The sum of the first two Unicode code points is a multiple of 5.
  10. The 10-th character is a ".
  11. The last non-empty line does not have any duplicate characters.
  12. The first line is a palindrome of length > 5.
  13. The first line is exactly 21 characters long (not including newline).
  14. It contains a ?.
  15. It contains a |.
  16. Contains a +.
  17. It is at least 28 lines long.
  18. The following characters are used five times in total: !"#$.[\] and the codepoint of the second character is less than 60.
  19. Contains Henry Jams? as a continuous substring.
  20. The last character is ~.
  21. It contains a C
  22. Each line contains a tab character.
  23. The ninth line contains at least 22 characters, excluding the newline.

For future answers:

  • The first character is a ., and so is the 21st character (palindromic rule).
  • The 10th character is a ", and so is the 12th character (palindromic rule).
  • The first line is a palindrome of length 21.
  • The second character's Unicode code point, mod 5, is 4, and its code point is lower than 60 (the printables are ',1;6 and tab).
  • The last character is ~.
  • Its length is an even perfect square.
  • It is at least 28 lines long.
  • The ninth line must have at least 22 characters, excluding the newline.
  • The last non-empty line does not have any duplicate characters.
  • Contains the exact strings ->, Hi, Retina!, and Henry Jams?.
  • It contains |, + and C.
  • Each line contains a tab character.
  • Each program is now allowed only the 2 . and 2 " in the first line, and the ! in Hi, Retina!. Those characters cannot be used anywhere else, in addition to no uses of #$[\].
Post Undeleted by Giuseppe
Post Deleted by Giuseppe
Post Undeleted by Giuseppe
added 25 characters in body
Source Link
Giuseppe
  • 28.8k
  • 3
  • 31
  • 105

#24, SNOBOL4 (CSNOBOL4), 196 bytes

New requirement: the ninth line must contain at least 22 characters, excluding the newline.

SNOBOL4 (CSNOBOL4), 256 bytes

.;*->+|C	"x"	C|+>>+|a	"x"	a|+>-*;.
	INPUT	x =input
	INPUT	x =input
	INPUT	x =input
	INPUT	x =input
	INPUT	x =input
	INPUT	x =input
	INPUT	x =input
	INPUT;*	x 1=input;* Henry Jams?
	X =INPUT
	OUTPUT =GT(SIZE(X),21)	1
	     
	     
	   
	     
	
	
	
	
	
	
	
	
	
end	
		ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234
	Hi, Retina!
	~

Try it online!Try it online!

#24, SNOBOL4 (CSNOBOL4), 196 bytes

New requirement: the ninth line must contain at least 22 characters, excluding the newline.

.;*->+|C	"x"	C|+>-*;.
	INPUT
	INPUT
	INPUT
	INPUT
	INPUT
	INPUT
	INPUT
	INPUT;* 1 Henry Jams?
	X =INPUT
	OUTPUT =GT(SIZE(X),21)	1
	     
	     
	   
	     
	
	
	
	
	
	
	
	
	
end	
	
	Hi, Retina!
	~

Try it online!

SNOBOL4 (CSNOBOL4), 256 bytes

.;*->+|a	"x"	a|+>-*;.
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input
	x =input;* Henry Jams?
	X =INPUT
	OUTPUT =GT(SIZE(X),21)	1
	
	
	
	
	
	
	
	
	
	
	
	
	
end	
	ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234
	Hi, Retina!
	~

Try it online!

Post Deleted by Giuseppe
Source Link
Giuseppe
  • 28.8k
  • 3
  • 31
  • 105
Loading