Result

WA

Duration

611ms

Code [DL]

puts gets.trim.chars.map {|c| (97 <= c.ord && c.ord <= 122) ? 0 : 1}.map(&:to_s).join

stdin

aBCdeFGhIjKLMnOpQrStuVWXYz

stdout

stderr

/volume/CODE:1:in `<main>': undefined method `trim' for "aBCdeFGhIjKLMnOpQrStuVWXYz\\n":String (NoMethodError)

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff3c9b6a60 /* 9 vars */) = 0
12    execve("/usr/local/ruby-2.7.1/bin/ruby", ["/usr/local/ruby-2.7.1/bin/ruby", "/volume/CODE"], 0x557297d43d60 /* 9 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x557297d43d40 /* 9 vars */) = 0
11    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
12    +++ exited with 1 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=1, si_utime=5, si_stime=1} ---
10    +++ exited with 1 +++