Пример #1
0
 def testComputation(self):
     self.assertEqual(   1, problem005.smallest_multiple( 1))
     self.assertEqual(   2, problem005.smallest_multiple( 2))
     self.assertEqual(   6, problem005.smallest_multiple( 3))
     self.assertEqual(  12, problem005.smallest_multiple( 4))
     self.assertEqual(  60, problem005.smallest_multiple( 5))
     self.assertEqual(  60, problem005.smallest_multiple( 6))
     self.assertEqual(2520, problem005.smallest_multiple(10))
Пример #2
0
#!/usr/bin/env python

import sys

import problem005

print(problem005.smallest_multiple(int(sys.argv[1])))