@@ -0,0 +1,758 @@
+import unittest%0A%0A%0Aclass Test0038(unittest.TestCase):%0A    def test_problem(self):%0A        # 9*1 or 9x*1 or 9xx*1 or 9xxx*1%0A        def check(n, m):%0A            s = %22%22%0A            for i in range(1, 9):%0A                s += str(n * i)%0A                if len(s) %3E 9:%0A                    break%0A                if len(s) == 9:%0A                    cs = list(s)%0A                    cs.sort()%0A                    if ''.join(cs) == '123456789' and int(s) %3E m:%0A                        m = int(s)%0A            return m%0A%0A        m = 918273645  # 9*1%0A        for n in range(91, 99):%0A            m = check(n, m)%0A        for n in range(912, 999):%0A            m = check(n, m)%0A        for n in range(9123, 9999):%0A            m = check(n, m)%0A        self.assertEqual(m, 104743)%0A

Create p0038_test.py