Result

AC

Duration

924ms

Code [DL]

$<.map{|a|a=a.to_i;p (1..9).any?{|i|a%i<1&&a/i<=9}?1:0}

stdin

59
90
48
37
99
74
27
89
92
45
74
26
96
73
41
33
15
70
25
52
23
59
18
62
91
75
17
82
49
39
64
16
95
67
32
98
36
63
81
81
58
68
87
44
53
76
85
60
43
65
88
40
37
24
13
47
34
22
21
35
50
46
72
84
80
66
86
79
30
51
76
32
10
16
57
19
78
40
93
29
66
38
94
14
97
55
29
20
77
56
11
28
61
71
69
54
42
12
31
83

stdout

0
0
1
0
0
0
1
0
0
1
0
0
0
0
0
0
1
0
1
0
0
0
1
0
0
0
0
0
1
0
1
1
0
0
1
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
1
1
0
0
1
0
0
0
0
0
1
0
0
1
1
1
0
0
0
1
0
0
0
0
0
1
0
0
0
1
0
1
0
1
0
0
0
1
1
1
0
0

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd769b1b20 /* 9 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55d30261ad40 /* 9 vars */) = 0
12    execve("/usr/local/ruby-2.6.3/bin/ruby", ["/usr/local/ruby-2.6.3/bin/ruby", "/volume/CODE"], 0x55d30261ad60 /* 9 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} ---
12    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=7, si_stime=1} ---
10    +++ exited with 0 +++