Result

AC

Duration

540ms

Code [DL]

let rec f?(a=read_line())x=print_int(Bool.to_int(a<x));f(min a x);;f"a"

stdin

12
57
20
14
28
47
84
69
86
31
99
41
44
45
74
79
22
27
42
30
60
18
73
90
13
54
11
63
92
36
35
96
88
52
95
38
19
67
91
85
15
29
62
25
58
77
26
33
72
61

stdout

10000000000000000000000000100000000000000000000000

stderr

Exception: End_of_file.

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe68870930 /* 7 vars */) = 0
12    execve("/bin/cat", ["cat", "-"], 0x55bbb89a1d30 /* 7 vars */ <unfinished ...>
13    execve("/usr/bin/ocaml", ["/usr/bin/ocaml", "/volume/CODE"], 0x55bbb89a1d40 /* 7 vars */ <unfinished ...>
12    <... execve resumed>)             = 0
13    <... execve resumed>)             = 0
12    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    +++ exited with 2 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=2, si_utime=2, si_stime=0} ---
11    +++ exited with 2 +++