Skip to main content
improve answer
Source Link
Kun Ren
  • 181
  • 4

R, 6060 58

if(readline()==paste0(rep(letters,1:26),collapse=""))cat(42)

if(readlinescan(,"")==paste0==paste(rep(letters,1:26),collapse=""collapse=""))cat(42)
 

Thanks for the suggestion by @giusppe

R, 60

if(readline()==paste0(rep(letters,1:26),collapse=""))cat(42)
 

R, 60 58

if(readline()==paste0(rep(letters,1:26),collapse=""))cat(42)

if(scan(,"")==paste(rep(letters,1:26),collapse=""))cat(42)

Thanks for the suggestion by @giusppe

Source Link
Kun Ren
  • 181
  • 4

R, 60

if(readline()==paste0(rep(letters,1:26),collapse=""))cat(42)