겹치지 않는 숫자 문제(2/3)
ref : http://blog.readiz.com/112두번째는 그냥 가능한 전체 리스트를 만들어서 검사.quizS2.py 1 from quiz import prettyPrint 2 3 def isMatchCase((a,b,c,d,e,f,g,h,i)): 4 tmp = (a*10+b)*c 5 6 if tmp>98: 7 return False 8 9 if not tmp == d*10+e: 10 return False 11 12 if not tmp+f*10+g == h*10+i: 13 return False 14 15 prettyPrint((a,b,c,d,e,f,g,h,i)) 16 return True 17 18 def getAllAvailableList(allRange=range(1, 10)): 19 iG..
2014. 3. 28.