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 49 characters in body
Source Link
Dominic van Essen
  • 37.2k
  • 2
  • 24
  • 61

R, (削除) 63 (削除ここまで) (削除) 62 (削除ここまで) 57(削除) 57 (削除ここまで) 56 bytes

Edit: saved 1 byte thanks to Jonah

function(s)!sum(i<-utf8ToInt(tolower(s))%%48%%96%%64%%48)%%nchar(s)&i

Try it online! Try it online!

Output is Truthy list of one-or-more TRUEs, or Falsy list of one-or-more FALSEs.

R, (削除) 63 (削除ここまで) (削除) 62 (削除ここまで) 57 bytes

function(s)!sum(i<-utf8ToInt(tolower(s))%%48)%%nchar(s)&i

Try it online!

Output is Truthy list of one-or-more TRUEs, or Falsy list of one-or-more FALSEs.

R, (削除) 63 (削除ここまで) (削除) 62 (削除ここまで) (削除) 57 (削除ここまで) 56 bytes

Edit: saved 1 byte thanks to Jonah

function(s)!sum(i<-utf8ToInt(s)%%96%%64%%48)%%nchar(s)&i

Try it online!

Output is Truthy list of one-or-more TRUEs, or Falsy list of one-or-more FALSEs.

deleted 1 character in body
Source Link
Dominic van Essen
  • 37.2k
  • 2
  • 24
  • 61

R, (削除) 63 (削除ここまで) 62(削除) 62 (削除ここまで) 57 bytes

function(s)!sum(i<-utf8ToInt(i=utf8ToInttolower(s))%%32-16*(i<58)%%48)%%nchar(s)&i>48&i

Try it online! Try it online!

Output is Truthy list of one-or-more TRUEs, or Falsy list of one-or-more FALSEs.

R, (削除) 63 (削除ここまで) 62 bytes

function(s)!sum((i=utf8ToInt(s))%%32-16*(i<58))%%nchar(s)&i>48

Try it online!

Output is Truthy list of one-or-more TRUEs, or Falsy list of one-or-more FALSEs.

R, (削除) 63 (削除ここまで) (削除) 62 (削除ここまで) 57 bytes

function(s)!sum(i<-utf8ToInt(tolower(s))%%48)%%nchar(s)&i

Try it online!

Output is Truthy list of one-or-more TRUEs, or Falsy list of one-or-more FALSEs.

added 94 characters in body
Source Link
Dominic van Essen
  • 37.2k
  • 2
  • 24
  • 61

R, 63(削除) 63 (削除ここまで) 62 bytes

function(s)!(t=sumsum((i=utf8ToInt(s))%%32-16*(i<58)))%%nchar(s)&t&i>48

Try it online! Try it online!

Output is Truthy list of one-or-more TRUEs, or Falsy list of one-or-more FALSEs.

R, 63 bytes

function(s)!(t=sum((i=utf8ToInt(s))%%32-16*(i<58)))%%nchar(s)&t

Try it online!

R, (削除) 63 (削除ここまで) 62 bytes

function(s)!sum((i=utf8ToInt(s))%%32-16*(i<58))%%nchar(s)&i>48

Try it online!

Output is Truthy list of one-or-more TRUEs, or Falsy list of one-or-more FALSEs.

Source Link
Dominic van Essen
  • 37.2k
  • 2
  • 24
  • 61
Loading

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