Result

AC

Duration

1051ms

Code [DL]

(method(a b c d e:g)=:if(eq $b $c)(echo $c)else:echo $e)@(""::split:readline)
source $0

stdin

932 296
245 848
498 883
788 486
587 647
633 893
359 662
299 488
543 119
115 376
273 773
274 746
577 795
245 757
144 447
518 781
184 885
546 626
685 847
722 326
344 774
837 733
869 991
922 773
458 588
169 969
778 793
881 419
389 282
368 945
788 883
577 766

stdout

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

stderr

boot.oh: 360: error/runtime: argument 1 (of 1) is invalid

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe404085e0 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x559c6789d048 /* 7 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} ---
13    execve("/usr/bin/go", ["/usr/bin/go", "env", "GOPATH"], 0x559c6789d078 /* 7 vars */) = 0
17    +++ exited with 0 +++
16    +++ exited with 0 +++
15    +++ exited with 0 +++
14    +++ 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"], 0x559c6789d068 /* 7 vars */) = 0
23    +++ exited with 0 +++
21    +++ exited with 0 +++
19    +++ exited with 0 +++
18    +++ exited with 0 +++
20    +++ exited with 0 +++
22    +++ 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=4, si_stime=5} ---
10    +++ exited with 0 +++