Result

AC

Duration

932ms

Code [DL]

100.times{a=gets.to_i
p (1..9).any?{|i|a%i==0&&a/i<=9}?1:0}

stdin

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

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffec64df720 /* 9 vars */) = 0
12    execve("/usr/local/ruby-2.6.3/bin/ruby", ["/usr/local/ruby-2.6.3/bin/ruby", "/volume/CODE"], 0x563f77e93d60 /* 9 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x563f77e93d40 /* 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=9, si_stime=2} ---
10    +++ exited with 0 +++