Result

AC

Duration

1249ms

Code [DL]

define l
while(set l:readline){
define c:l::slice 1 2
if(eq $c(l::slice 2 3)){
echo $c
} else {
echo (l::slice 4 5)
}
}

stdin

259 547
248 368
528 517
276 684
959 554
441 214
785 552
476 637
751 148
619 193
168 861
556 354
942 629
766 631
544 226
599 796
911 126
368 294
471 793
751 775
977 973
293 446
966 191
832 323
971 172
694 996
211 118
422 225
588 113
174 441
196 397
277 913

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe56a0ce60 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55cb9e06a048 /* 7 vars */) = 0
13    execve("/usr/bin/go", ["/usr/bin/go", "env", "GOPATH"], 0x55cb9e06a078 /* 7 vars */ <unfinished ...>
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} ---
13    <... execve resumed>)             = 0
14    +++ exited with 0 +++
16    +++ exited with 0 +++
15    +++ exited with 0 +++
17    +++ exited with 0 +++
13    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
12    execve("/root/go/bin/oh", ["/root/go/bin/oh", "/volume/CODE"], 0x55cb9e06a068 /* 7 vars */) = 0
22    +++ exited with 0 +++
21    +++ exited with 0 +++
20    +++ exited with 0 +++
19    +++ exited with 0 +++
18    +++ exited with 0 +++
23    +++ exited with 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=2, si_stime=5} ---
10    +++ exited with 0 +++