Result

WA

Duration

826ms

Code [DL]

import "io" for Stdin
while(1){
var s=Stdin.readLine()
System.print(s[s[1]==s[2]?4:2])}

stdin

942 227
217 954
455 561
933 367
938 227
266 891
288 711
685 782
472 794
468 822
142 421
415 941
415 511
193 235
379 771
689 594
742 474
855 221
151 129
335 992
575 331
744 943
771 178
794 993
533 236
595 696
731 117
177 775
144 442
434 575
856 564
633 884

stdout

stderr

[/volume/CODE line 4] Error at '}': Expect newline after statement.
[/volume/CODE line 4] Error at end of file: Expect '}' at end of block.

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffcc2271020 /* 9 vars */) = 0
12    execve("/bin/cat", ["cat", "-"], 0x55d3cbfafd30 /* 9 vars */) = 0
13    execve("/root/wren", ["/root/wren", "/volume/CODE"], 0x55d3cbfafd40 /* 9 vars */ <unfinished ...>
12    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    <... execve resumed>)             = 0
13    +++ exited with 65 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=65, si_utime=0, si_stime=0} ---
11    +++ exited with 65 +++