Result

AC

Duration

536ms

Code [DL]

let rec f?(a=read_line())x=print_char(if a<x then '1'else '0');f(min a x);;f"a"

stdin

42
10
34
62
52
57
15
80
16
92
31
98
44
41
33
96
30
75
74
21
53
22
32
71
17
43
55
54
26
20
45
12
18
56
61
23
87
68
66
89
86
50
94
63
19
77
36
48
76
88

stdout

11000000000000000000000000000000000000000000000000

stderr

Exception: End_of_file.

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd26f20950 /* 7 vars */) = 0
13    execve("/bin/cat", ["cat", "-"], 0x55d4d48bfd30 /* 7 vars */ <unfinished ...>
14    execve("/usr/bin/ocaml", ["/usr/bin/ocaml", "/volume/CODE"], 0x55d4d48bfd40 /* 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=1, si_stime=0} ---
12    +++ exited with 2 +++