Result

AC

Duration

1759ms

Code [DL]

(define $z (lambda [] (do {(let { [$x (unpack (io (read-line)))]} (writeChar (if (equal (nth 2 x) (nth 3 x)) (nth 2 x) (nth 5 x)))) (write "\n")} (z)))) (define $main (lambda [$a] (do {[(z)]} [])))

stdin

829 448
181 881
479 126
347 262
522 118
223 214
972 778
991 918
512 125
699 993
376 596
277 667
144 599
733 435
694 536
218 197
218 813
755 895
725 559
226 656
516 443
579 986
766 672
599 933
722 627
388 889
637 974
389 992
339 433
986 686
295 698
872 523

stdout

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

stderr

egison: <stdin>: hGetLine: end of file

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc7c4378a0 /* 6 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x5610b8ec3c00 /* 6 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    execve("/bin/ln", ["ln", "-s", "/volume/CODE", "/tmp/code.segi"], 0x5610b8ec3c20 /* 6 vars */) = 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} ---
13    execve("/bin/cat", ["cat", "-"], 0x5610b8ec3c18 /* 6 vars */ <unfinished ...>
14    execve("/usr/bin/egison", ["/usr/bin/egison", "/tmp/code.segi"], 0x5610b8ec3c28 /* 6 vars */ <unfinished ...>
13    <... execve resumed> )            = 0
14    <... execve resumed> )            = 0
13    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
16    +++ exited with 0 +++
18    +++ exited with 0 +++
17    +++ exited with 0 +++
15    +++ exited with 0 +++
14    +++ exited with 1 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=1, si_utime=59, si_stime=13} ---
19    execve("/bin/rm", ["rm", "-f", "/tmp/code.segi"], 0x5610b8ec3bc0 /* 6 vars */) = 0
19    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++