Result

AC

Duration

520ms

Code [DL]

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

stdin

35
54
94
68
55
86
16
48
30
76
96
63
43
13
15
41
83
80
42
50
74
69
64
87
67
78
58
14
99
24
89
59
26
10
57
84
28
29
20
25
17
38
22
12
11
34
52
46
49
47

stdout

10000010000001000000000000000000010000000000000000

stderr

Exception: End_of_file.

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe88f525c0 /* 7 vars */) = 0
13    execve("/bin/cat", ["cat", "-"], 0x5608a8425d30 /* 7 vars */ <unfinished ...>
14    execve("/usr/bin/ocaml", ["/usr/bin/ocaml", "/volume/CODE"], 0x5608a8425d40 /* 7 vars */ <unfinished ...>
13    <... execve resumed>)             = 0
14    <... execve resumed>)             = 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} ---
14    +++ exited with 2 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=2, si_utime=2, si_stime=0} ---
12    +++ exited with 2 +++