diff --git a/104-unique_digits.dfy b/104-unique_digits.dfy index febd9b1..7e15328 100644 --- a/104-unique_digits.dfy +++ b/104-unique_digits.dfy @@ -1,7 +1,7 @@ predicate HasNoEvenDigit(n: int) decreases n { - n >= 0 && (n < 10 || (n % 10 % 2 != 0 && HasNoEvenDigit(n / 10))) + n >= 0 && ((n < 10 && n % 2 == 1) || (n % 2 == 1 && HasNoEvenDigit(n / 10))) } method UniqueDigits(x: seq) returns (result: seq)