Result

WA

Duration

1069ms

Code [DL]

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

stdin

441 344
335 148
733 433
625 522
868 881
326 515
877 129
355 998
853 558
354 746
898 722
698 332
961 616
976 615
966 679
766 665
283 219
115 117
737 394
955 334
543 337
964 228
883 834
688 838
637 385
522 455
957 737
772 827
518 814
277 778
698 293
899 699

stdout

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

stderr

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

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffca9dea940 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55e79dfc5048 /* 7 vars */ <unfinished ...>
13    execve("/usr/bin/go", ["/usr/bin/go", "env", "GOPATH"], 0x55e79dfc5078 /* 7 vars */ <unfinished ...>
11    <... execve resumed>)             = 0
13    <... 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} ---
17    +++ exited with 0 +++
15    +++ exited with 0 +++
14    +++ exited with 0 +++
16    +++ 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"], 0x55e79dfc5068 /* 7 vars */) = 0
23    +++ exited with 0 +++
22    +++ exited with 0 +++
21    +++ exited with 0 +++
20    +++ exited with 0 +++
19    +++ exited with 0 +++
18    +++ 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=3, si_stime=8} ---
10    +++ exited with 0 +++