Result

AC

Duration

1072ms

Code [DL]

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

stdin

463 668
959 294
997 794
948 669
682 281
245 156
249 464
229 297
122 215
293 117
299 998
968 681
155 169
736 137
911 665
788 877
261 116
385 782
722 663
674 438
462 625
833 535
978 451
699 751
583 889
155 355
732 213
744 441
675 746
764 891
916 661
167 341

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd4fcc72f0 /* 9 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x562bc848dd30 /* 9 vars */ <unfinished ...>
12    execve("/root/wren", ["/root/wren", "/volume/CODE"], 0x562bc848dd40 /* 9 vars */) = 0
11    <... execve resumed>)             = 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 +++