Result

WA

Duration

1105ms

Code [DL]

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

stdin

766 739
143 934
466 779
352 656
466 446
564 779
537 732
744 429
935 694
923 246
361 557
961 617
632 318
271 717
969 768
799 398
744 441
923 229
961 626
791 112
614 117
825 463
792 267
934 459
334 437
624 794
466 659
824 446
288 788
611 118
915 659
711 241

stdout

7
3
7
2
4
4
7
4
5
3
1
1
2
1
9
3
4
3
1
1
4
5
2
4
4
4
6
4
7
1
5
2

stderr

Subscript out of bounds.
[/volume/CODE line 4] in (script)

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd0fa61020 /* 9 vars */) = 0
12    execve("/root/wren", ["/root/wren", "/volume/CODE"], 0x55e55f69cd40 /* 9 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55e55f69cd30 /* 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 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++