2016年4月25日月曜日

開発環境

Think Python (Allen B. Downey (著)、 O'Reilly Media)のChapter 5.(Conditionals and Recursion)のExercises 5-2(No. 1246)を取り組んでみる。

Exercises 5-2(No. 1246)

コード(Emacs)

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

def check_fermat(a, b, c, n):
    if n > 2 and (a ** n + b ** n) == c ** n:
        print('Holy smokes, Fermat was wrong!')
    else:
        print("No, that doesn't work")

if __name__ == '__main__':
    a = 3
    b = 4
    c = 5
    n = 2
    print(a ** n + b ** n == c ** n)
    for a in range(1, 10):
        for b in range(a, 10):
            for c in range(b, 10):
                for n in range(5):
                    print('a = {0}, b = {1}, c = {2}, n = {3}: '.\
                          format(a, b, c, n), end='')
                    check_fermat(a, b, c, n)
    try:
        a = int(input('Enter a: '))
        b = int(input('Enter b: '))
        c = int(input('Enter c: '))
        n = int(input('Enter n: '))
    except Exception as err:
        print(err)
    else:
        check_fermat(a, b, c, n)

入出力結果(Terminal, IPython)

$ ./sample2.py
True
a = 1, b = 1, c = 1, n = 0: No, that doesn't work
a = 1, b = 1, c = 1, n = 1: No, that doesn't work
a = 1, b = 1, c = 1, n = 2: No, that doesn't work
a = 1, b = 1, c = 1, n = 3: No, that doesn't work
a = 1, b = 1, c = 1, n = 4: No, that doesn't work
a = 1, b = 1, c = 2, n = 0: No, that doesn't work
a = 1, b = 1, c = 2, n = 1: No, that doesn't work
a = 1, b = 1, c = 2, n = 2: No, that doesn't work
a = 1, b = 1, c = 2, n = 3: No, that doesn't work
a = 1, b = 1, c = 2, n = 4: No, that doesn't work
a = 1, b = 1, c = 3, n = 0: No, that doesn't work
a = 1, b = 1, c = 3, n = 1: No, that doesn't work
a = 1, b = 1, c = 3, n = 2: No, that doesn't work
a = 1, b = 1, c = 3, n = 3: No, that doesn't work
a = 1, b = 1, c = 3, n = 4: No, that doesn't work
a = 1, b = 1, c = 4, n = 0: No, that doesn't work
a = 1, b = 1, c = 4, n = 1: No, that doesn't work
a = 1, b = 1, c = 4, n = 2: No, that doesn't work
a = 1, b = 1, c = 4, n = 3: No, that doesn't work
a = 1, b = 1, c = 4, n = 4: No, that doesn't work
a = 1, b = 1, c = 5, n = 0: No, that doesn't work
a = 1, b = 1, c = 5, n = 1: No, that doesn't work
a = 1, b = 1, c = 5, n = 2: No, that doesn't work
a = 1, b = 1, c = 5, n = 3: No, that doesn't work
a = 1, b = 1, c = 5, n = 4: No, that doesn't work
a = 1, b = 1, c = 6, n = 0: No, that doesn't work
a = 1, b = 1, c = 6, n = 1: No, that doesn't work
a = 1, b = 1, c = 6, n = 2: No, that doesn't work
a = 1, b = 1, c = 6, n = 3: No, that doesn't work
a = 1, b = 1, c = 6, n = 4: No, that doesn't work
a = 1, b = 1, c = 7, n = 0: No, that doesn't work
a = 1, b = 1, c = 7, n = 1: No, that doesn't work
a = 1, b = 1, c = 7, n = 2: No, that doesn't work
a = 1, b = 1, c = 7, n = 3: No, that doesn't work
a = 1, b = 1, c = 7, n = 4: No, that doesn't work
a = 1, b = 1, c = 8, n = 0: No, that doesn't work
a = 1, b = 1, c = 8, n = 1: No, that doesn't work
a = 1, b = 1, c = 8, n = 2: No, that doesn't work
a = 1, b = 1, c = 8, n = 3: No, that doesn't work
a = 1, b = 1, c = 8, n = 4: No, that doesn't work
a = 1, b = 1, c = 9, n = 0: No, that doesn't work
a = 1, b = 1, c = 9, n = 1: No, that doesn't work
a = 1, b = 1, c = 9, n = 2: No, that doesn't work
a = 1, b = 1, c = 9, n = 3: No, that doesn't work
a = 1, b = 1, c = 9, n = 4: No, that doesn't work
a = 1, b = 2, c = 2, n = 0: No, that doesn't work
a = 1, b = 2, c = 2, n = 1: No, that doesn't work
a = 1, b = 2, c = 2, n = 2: No, that doesn't work
a = 1, b = 2, c = 2, n = 3: No, that doesn't work
a = 1, b = 2, c = 2, n = 4: No, that doesn't work
a = 1, b = 2, c = 3, n = 0: No, that doesn't work
a = 1, b = 2, c = 3, n = 1: No, that doesn't work
a = 1, b = 2, c = 3, n = 2: No, that doesn't work
a = 1, b = 2, c = 3, n = 3: No, that doesn't work
a = 1, b = 2, c = 3, n = 4: No, that doesn't work
a = 1, b = 2, c = 4, n = 0: No, that doesn't work
a = 1, b = 2, c = 4, n = 1: No, that doesn't work
a = 1, b = 2, c = 4, n = 2: No, that doesn't work
a = 1, b = 2, c = 4, n = 3: No, that doesn't work
a = 1, b = 2, c = 4, n = 4: No, that doesn't work
a = 1, b = 2, c = 5, n = 0: No, that doesn't work
a = 1, b = 2, c = 5, n = 1: No, that doesn't work
a = 1, b = 2, c = 5, n = 2: No, that doesn't work
a = 1, b = 2, c = 5, n = 3: No, that doesn't work
a = 1, b = 2, c = 5, n = 4: No, that doesn't work
a = 1, b = 2, c = 6, n = 0: No, that doesn't work
a = 1, b = 2, c = 6, n = 1: No, that doesn't work
a = 1, b = 2, c = 6, n = 2: No, that doesn't work
a = 1, b = 2, c = 6, n = 3: No, that doesn't work
a = 1, b = 2, c = 6, n = 4: No, that doesn't work
a = 1, b = 2, c = 7, n = 0: No, that doesn't work
a = 1, b = 2, c = 7, n = 1: No, that doesn't work
a = 1, b = 2, c = 7, n = 2: No, that doesn't work
a = 1, b = 2, c = 7, n = 3: No, that doesn't work
a = 1, b = 2, c = 7, n = 4: No, that doesn't work
a = 1, b = 2, c = 8, n = 0: No, that doesn't work
a = 1, b = 2, c = 8, n = 1: No, that doesn't work
a = 1, b = 2, c = 8, n = 2: No, that doesn't work
a = 1, b = 2, c = 8, n = 3: No, that doesn't work
a = 1, b = 2, c = 8, n = 4: No, that doesn't work
a = 1, b = 2, c = 9, n = 0: No, that doesn't work
a = 1, b = 2, c = 9, n = 1: No, that doesn't work
a = 1, b = 2, c = 9, n = 2: No, that doesn't work
a = 1, b = 2, c = 9, n = 3: No, that doesn't work
a = 1, b = 2, c = 9, n = 4: No, that doesn't work
a = 1, b = 3, c = 3, n = 0: No, that doesn't work
a = 1, b = 3, c = 3, n = 1: No, that doesn't work
a = 1, b = 3, c = 3, n = 2: No, that doesn't work
a = 1, b = 3, c = 3, n = 3: No, that doesn't work
a = 1, b = 3, c = 3, n = 4: No, that doesn't work
a = 1, b = 3, c = 4, n = 0: No, that doesn't work
a = 1, b = 3, c = 4, n = 1: No, that doesn't work
a = 1, b = 3, c = 4, n = 2: No, that doesn't work
a = 1, b = 3, c = 4, n = 3: No, that doesn't work
a = 1, b = 3, c = 4, n = 4: No, that doesn't work
a = 1, b = 3, c = 5, n = 0: No, that doesn't work
a = 1, b = 3, c = 5, n = 1: No, that doesn't work
a = 1, b = 3, c = 5, n = 2: No, that doesn't work
a = 1, b = 3, c = 5, n = 3: No, that doesn't work
a = 1, b = 3, c = 5, n = 4: No, that doesn't work
a = 1, b = 3, c = 6, n = 0: No, that doesn't work
a = 1, b = 3, c = 6, n = 1: No, that doesn't work
a = 1, b = 3, c = 6, n = 2: No, that doesn't work
a = 1, b = 3, c = 6, n = 3: No, that doesn't work
a = 1, b = 3, c = 6, n = 4: No, that doesn't work
a = 1, b = 3, c = 7, n = 0: No, that doesn't work
a = 1, b = 3, c = 7, n = 1: No, that doesn't work
a = 1, b = 3, c = 7, n = 2: No, that doesn't work
a = 1, b = 3, c = 7, n = 3: No, that doesn't work
a = 1, b = 3, c = 7, n = 4: No, that doesn't work
a = 1, b = 3, c = 8, n = 0: No, that doesn't work
a = 1, b = 3, c = 8, n = 1: No, that doesn't work
a = 1, b = 3, c = 8, n = 2: No, that doesn't work
a = 1, b = 3, c = 8, n = 3: No, that doesn't work
a = 1, b = 3, c = 8, n = 4: No, that doesn't work
a = 1, b = 3, c = 9, n = 0: No, that doesn't work
a = 1, b = 3, c = 9, n = 1: No, that doesn't work
a = 1, b = 3, c = 9, n = 2: No, that doesn't work
a = 1, b = 3, c = 9, n = 3: No, that doesn't work
a = 1, b = 3, c = 9, n = 4: No, that doesn't work
a = 1, b = 4, c = 4, n = 0: No, that doesn't work
a = 1, b = 4, c = 4, n = 1: No, that doesn't work
a = 1, b = 4, c = 4, n = 2: No, that doesn't work
a = 1, b = 4, c = 4, n = 3: No, that doesn't work
a = 1, b = 4, c = 4, n = 4: No, that doesn't work
a = 1, b = 4, c = 5, n = 0: No, that doesn't work
a = 1, b = 4, c = 5, n = 1: No, that doesn't work
a = 1, b = 4, c = 5, n = 2: No, that doesn't work
a = 1, b = 4, c = 5, n = 3: No, that doesn't work
a = 1, b = 4, c = 5, n = 4: No, that doesn't work
a = 1, b = 4, c = 6, n = 0: No, that doesn't work
a = 1, b = 4, c = 6, n = 1: No, that doesn't work
a = 1, b = 4, c = 6, n = 2: No, that doesn't work
a = 1, b = 4, c = 6, n = 3: No, that doesn't work
a = 1, b = 4, c = 6, n = 4: No, that doesn't work
a = 1, b = 4, c = 7, n = 0: No, that doesn't work
a = 1, b = 4, c = 7, n = 1: No, that doesn't work
a = 1, b = 4, c = 7, n = 2: No, that doesn't work
a = 1, b = 4, c = 7, n = 3: No, that doesn't work
a = 1, b = 4, c = 7, n = 4: No, that doesn't work
a = 1, b = 4, c = 8, n = 0: No, that doesn't work
a = 1, b = 4, c = 8, n = 1: No, that doesn't work
a = 1, b = 4, c = 8, n = 2: No, that doesn't work
a = 1, b = 4, c = 8, n = 3: No, that doesn't work
a = 1, b = 4, c = 8, n = 4: No, that doesn't work
a = 1, b = 4, c = 9, n = 0: No, that doesn't work
a = 1, b = 4, c = 9, n = 1: No, that doesn't work
a = 1, b = 4, c = 9, n = 2: No, that doesn't work
a = 1, b = 4, c = 9, n = 3: No, that doesn't work
a = 1, b = 4, c = 9, n = 4: No, that doesn't work
a = 1, b = 5, c = 5, n = 0: No, that doesn't work
a = 1, b = 5, c = 5, n = 1: No, that doesn't work
a = 1, b = 5, c = 5, n = 2: No, that doesn't work
a = 1, b = 5, c = 5, n = 3: No, that doesn't work
a = 1, b = 5, c = 5, n = 4: No, that doesn't work
a = 1, b = 5, c = 6, n = 0: No, that doesn't work
a = 1, b = 5, c = 6, n = 1: No, that doesn't work
a = 1, b = 5, c = 6, n = 2: No, that doesn't work
a = 1, b = 5, c = 6, n = 3: No, that doesn't work
a = 1, b = 5, c = 6, n = 4: No, that doesn't work
a = 1, b = 5, c = 7, n = 0: No, that doesn't work
a = 1, b = 5, c = 7, n = 1: No, that doesn't work
a = 1, b = 5, c = 7, n = 2: No, that doesn't work
a = 1, b = 5, c = 7, n = 3: No, that doesn't work
a = 1, b = 5, c = 7, n = 4: No, that doesn't work
a = 1, b = 5, c = 8, n = 0: No, that doesn't work
a = 1, b = 5, c = 8, n = 1: No, that doesn't work
a = 1, b = 5, c = 8, n = 2: No, that doesn't work
a = 1, b = 5, c = 8, n = 3: No, that doesn't work
a = 1, b = 5, c = 8, n = 4: No, that doesn't work
a = 1, b = 5, c = 9, n = 0: No, that doesn't work
a = 1, b = 5, c = 9, n = 1: No, that doesn't work
a = 1, b = 5, c = 9, n = 2: No, that doesn't work
a = 1, b = 5, c = 9, n = 3: No, that doesn't work
a = 1, b = 5, c = 9, n = 4: No, that doesn't work
a = 1, b = 6, c = 6, n = 0: No, that doesn't work
a = 1, b = 6, c = 6, n = 1: No, that doesn't work
a = 1, b = 6, c = 6, n = 2: No, that doesn't work
a = 1, b = 6, c = 6, n = 3: No, that doesn't work
a = 1, b = 6, c = 6, n = 4: No, that doesn't work
a = 1, b = 6, c = 7, n = 0: No, that doesn't work
a = 1, b = 6, c = 7, n = 1: No, that doesn't work
a = 1, b = 6, c = 7, n = 2: No, that doesn't work
a = 1, b = 6, c = 7, n = 3: No, that doesn't work
a = 1, b = 6, c = 7, n = 4: No, that doesn't work
a = 1, b = 6, c = 8, n = 0: No, that doesn't work
a = 1, b = 6, c = 8, n = 1: No, that doesn't work
a = 1, b = 6, c = 8, n = 2: No, that doesn't work
a = 1, b = 6, c = 8, n = 3: No, that doesn't work
a = 1, b = 6, c = 8, n = 4: No, that doesn't work
a = 1, b = 6, c = 9, n = 0: No, that doesn't work
a = 1, b = 6, c = 9, n = 1: No, that doesn't work
a = 1, b = 6, c = 9, n = 2: No, that doesn't work
a = 1, b = 6, c = 9, n = 3: No, that doesn't work
a = 1, b = 6, c = 9, n = 4: No, that doesn't work
a = 1, b = 7, c = 7, n = 0: No, that doesn't work
a = 1, b = 7, c = 7, n = 1: No, that doesn't work
a = 1, b = 7, c = 7, n = 2: No, that doesn't work
a = 1, b = 7, c = 7, n = 3: No, that doesn't work
a = 1, b = 7, c = 7, n = 4: No, that doesn't work
a = 1, b = 7, c = 8, n = 0: No, that doesn't work
a = 1, b = 7, c = 8, n = 1: No, that doesn't work
a = 1, b = 7, c = 8, n = 2: No, that doesn't work
a = 1, b = 7, c = 8, n = 3: No, that doesn't work
a = 1, b = 7, c = 8, n = 4: No, that doesn't work
a = 1, b = 7, c = 9, n = 0: No, that doesn't work
a = 1, b = 7, c = 9, n = 1: No, that doesn't work
a = 1, b = 7, c = 9, n = 2: No, that doesn't work
a = 1, b = 7, c = 9, n = 3: No, that doesn't work
a = 1, b = 7, c = 9, n = 4: No, that doesn't work
a = 1, b = 8, c = 8, n = 0: No, that doesn't work
a = 1, b = 8, c = 8, n = 1: No, that doesn't work
a = 1, b = 8, c = 8, n = 2: No, that doesn't work
a = 1, b = 8, c = 8, n = 3: No, that doesn't work
a = 1, b = 8, c = 8, n = 4: No, that doesn't work
a = 1, b = 8, c = 9, n = 0: No, that doesn't work
a = 1, b = 8, c = 9, n = 1: No, that doesn't work
a = 1, b = 8, c = 9, n = 2: No, that doesn't work
a = 1, b = 8, c = 9, n = 3: No, that doesn't work
a = 1, b = 8, c = 9, n = 4: No, that doesn't work
a = 1, b = 9, c = 9, n = 0: No, that doesn't work
a = 1, b = 9, c = 9, n = 1: No, that doesn't work
a = 1, b = 9, c = 9, n = 2: No, that doesn't work
a = 1, b = 9, c = 9, n = 3: No, that doesn't work
a = 1, b = 9, c = 9, n = 4: No, that doesn't work
a = 2, b = 2, c = 2, n = 0: No, that doesn't work
a = 2, b = 2, c = 2, n = 1: No, that doesn't work
a = 2, b = 2, c = 2, n = 2: No, that doesn't work
a = 2, b = 2, c = 2, n = 3: No, that doesn't work
a = 2, b = 2, c = 2, n = 4: No, that doesn't work
a = 2, b = 2, c = 3, n = 0: No, that doesn't work
a = 2, b = 2, c = 3, n = 1: No, that doesn't work
a = 2, b = 2, c = 3, n = 2: No, that doesn't work
a = 2, b = 2, c = 3, n = 3: No, that doesn't work
a = 2, b = 2, c = 3, n = 4: No, that doesn't work
a = 2, b = 2, c = 4, n = 0: No, that doesn't work
a = 2, b = 2, c = 4, n = 1: No, that doesn't work
a = 2, b = 2, c = 4, n = 2: No, that doesn't work
a = 2, b = 2, c = 4, n = 3: No, that doesn't work
a = 2, b = 2, c = 4, n = 4: No, that doesn't work
a = 2, b = 2, c = 5, n = 0: No, that doesn't work
a = 2, b = 2, c = 5, n = 1: No, that doesn't work
a = 2, b = 2, c = 5, n = 2: No, that doesn't work
a = 2, b = 2, c = 5, n = 3: No, that doesn't work
a = 2, b = 2, c = 5, n = 4: No, that doesn't work
a = 2, b = 2, c = 6, n = 0: No, that doesn't work
a = 2, b = 2, c = 6, n = 1: No, that doesn't work
a = 2, b = 2, c = 6, n = 2: No, that doesn't work
a = 2, b = 2, c = 6, n = 3: No, that doesn't work
a = 2, b = 2, c = 6, n = 4: No, that doesn't work
a = 2, b = 2, c = 7, n = 0: No, that doesn't work
a = 2, b = 2, c = 7, n = 1: No, that doesn't work
a = 2, b = 2, c = 7, n = 2: No, that doesn't work
a = 2, b = 2, c = 7, n = 3: No, that doesn't work
a = 2, b = 2, c = 7, n = 4: No, that doesn't work
a = 2, b = 2, c = 8, n = 0: No, that doesn't work
a = 2, b = 2, c = 8, n = 1: No, that doesn't work
a = 2, b = 2, c = 8, n = 2: No, that doesn't work
a = 2, b = 2, c = 8, n = 3: No, that doesn't work
a = 2, b = 2, c = 8, n = 4: No, that doesn't work
a = 2, b = 2, c = 9, n = 0: No, that doesn't work
a = 2, b = 2, c = 9, n = 1: No, that doesn't work
a = 2, b = 2, c = 9, n = 2: No, that doesn't work
a = 2, b = 2, c = 9, n = 3: No, that doesn't work
a = 2, b = 2, c = 9, n = 4: No, that doesn't work
a = 2, b = 3, c = 3, n = 0: No, that doesn't work
a = 2, b = 3, c = 3, n = 1: No, that doesn't work
a = 2, b = 3, c = 3, n = 2: No, that doesn't work
a = 2, b = 3, c = 3, n = 3: No, that doesn't work
a = 2, b = 3, c = 3, n = 4: No, that doesn't work
a = 2, b = 3, c = 4, n = 0: No, that doesn't work
a = 2, b = 3, c = 4, n = 1: No, that doesn't work
a = 2, b = 3, c = 4, n = 2: No, that doesn't work
a = 2, b = 3, c = 4, n = 3: No, that doesn't work
a = 2, b = 3, c = 4, n = 4: No, that doesn't work
a = 2, b = 3, c = 5, n = 0: No, that doesn't work
a = 2, b = 3, c = 5, n = 1: No, that doesn't work
a = 2, b = 3, c = 5, n = 2: No, that doesn't work
a = 2, b = 3, c = 5, n = 3: No, that doesn't work
a = 2, b = 3, c = 5, n = 4: No, that doesn't work
a = 2, b = 3, c = 6, n = 0: No, that doesn't work
a = 2, b = 3, c = 6, n = 1: No, that doesn't work
a = 2, b = 3, c = 6, n = 2: No, that doesn't work
a = 2, b = 3, c = 6, n = 3: No, that doesn't work
a = 2, b = 3, c = 6, n = 4: No, that doesn't work
a = 2, b = 3, c = 7, n = 0: No, that doesn't work
a = 2, b = 3, c = 7, n = 1: No, that doesn't work
a = 2, b = 3, c = 7, n = 2: No, that doesn't work
a = 2, b = 3, c = 7, n = 3: No, that doesn't work
a = 2, b = 3, c = 7, n = 4: No, that doesn't work
a = 2, b = 3, c = 8, n = 0: No, that doesn't work
a = 2, b = 3, c = 8, n = 1: No, that doesn't work
a = 2, b = 3, c = 8, n = 2: No, that doesn't work
a = 2, b = 3, c = 8, n = 3: No, that doesn't work
a = 2, b = 3, c = 8, n = 4: No, that doesn't work
a = 2, b = 3, c = 9, n = 0: No, that doesn't work
a = 2, b = 3, c = 9, n = 1: No, that doesn't work
a = 2, b = 3, c = 9, n = 2: No, that doesn't work
a = 2, b = 3, c = 9, n = 3: No, that doesn't work
a = 2, b = 3, c = 9, n = 4: No, that doesn't work
a = 2, b = 4, c = 4, n = 0: No, that doesn't work
a = 2, b = 4, c = 4, n = 1: No, that doesn't work
a = 2, b = 4, c = 4, n = 2: No, that doesn't work
a = 2, b = 4, c = 4, n = 3: No, that doesn't work
a = 2, b = 4, c = 4, n = 4: No, that doesn't work
a = 2, b = 4, c = 5, n = 0: No, that doesn't work
a = 2, b = 4, c = 5, n = 1: No, that doesn't work
a = 2, b = 4, c = 5, n = 2: No, that doesn't work
a = 2, b = 4, c = 5, n = 3: No, that doesn't work
a = 2, b = 4, c = 5, n = 4: No, that doesn't work
a = 2, b = 4, c = 6, n = 0: No, that doesn't work
a = 2, b = 4, c = 6, n = 1: No, that doesn't work
a = 2, b = 4, c = 6, n = 2: No, that doesn't work
a = 2, b = 4, c = 6, n = 3: No, that doesn't work
a = 2, b = 4, c = 6, n = 4: No, that doesn't work
a = 2, b = 4, c = 7, n = 0: No, that doesn't work
a = 2, b = 4, c = 7, n = 1: No, that doesn't work
a = 2, b = 4, c = 7, n = 2: No, that doesn't work
a = 2, b = 4, c = 7, n = 3: No, that doesn't work
a = 2, b = 4, c = 7, n = 4: No, that doesn't work
a = 2, b = 4, c = 8, n = 0: No, that doesn't work
a = 2, b = 4, c = 8, n = 1: No, that doesn't work
a = 2, b = 4, c = 8, n = 2: No, that doesn't work
a = 2, b = 4, c = 8, n = 3: No, that doesn't work
a = 2, b = 4, c = 8, n = 4: No, that doesn't work
a = 2, b = 4, c = 9, n = 0: No, that doesn't work
a = 2, b = 4, c = 9, n = 1: No, that doesn't work
a = 2, b = 4, c = 9, n = 2: No, that doesn't work
a = 2, b = 4, c = 9, n = 3: No, that doesn't work
a = 2, b = 4, c = 9, n = 4: No, that doesn't work
a = 2, b = 5, c = 5, n = 0: No, that doesn't work
a = 2, b = 5, c = 5, n = 1: No, that doesn't work
a = 2, b = 5, c = 5, n = 2: No, that doesn't work
a = 2, b = 5, c = 5, n = 3: No, that doesn't work
a = 2, b = 5, c = 5, n = 4: No, that doesn't work
a = 2, b = 5, c = 6, n = 0: No, that doesn't work
a = 2, b = 5, c = 6, n = 1: No, that doesn't work
a = 2, b = 5, c = 6, n = 2: No, that doesn't work
a = 2, b = 5, c = 6, n = 3: No, that doesn't work
a = 2, b = 5, c = 6, n = 4: No, that doesn't work
a = 2, b = 5, c = 7, n = 0: No, that doesn't work
a = 2, b = 5, c = 7, n = 1: No, that doesn't work
a = 2, b = 5, c = 7, n = 2: No, that doesn't work
a = 2, b = 5, c = 7, n = 3: No, that doesn't work
a = 2, b = 5, c = 7, n = 4: No, that doesn't work
a = 2, b = 5, c = 8, n = 0: No, that doesn't work
a = 2, b = 5, c = 8, n = 1: No, that doesn't work
a = 2, b = 5, c = 8, n = 2: No, that doesn't work
a = 2, b = 5, c = 8, n = 3: No, that doesn't work
a = 2, b = 5, c = 8, n = 4: No, that doesn't work
a = 2, b = 5, c = 9, n = 0: No, that doesn't work
a = 2, b = 5, c = 9, n = 1: No, that doesn't work
a = 2, b = 5, c = 9, n = 2: No, that doesn't work
a = 2, b = 5, c = 9, n = 3: No, that doesn't work
a = 2, b = 5, c = 9, n = 4: No, that doesn't work
a = 2, b = 6, c = 6, n = 0: No, that doesn't work
a = 2, b = 6, c = 6, n = 1: No, that doesn't work
a = 2, b = 6, c = 6, n = 2: No, that doesn't work
a = 2, b = 6, c = 6, n = 3: No, that doesn't work
a = 2, b = 6, c = 6, n = 4: No, that doesn't work
a = 2, b = 6, c = 7, n = 0: No, that doesn't work
a = 2, b = 6, c = 7, n = 1: No, that doesn't work
a = 2, b = 6, c = 7, n = 2: No, that doesn't work
a = 2, b = 6, c = 7, n = 3: No, that doesn't work
a = 2, b = 6, c = 7, n = 4: No, that doesn't work
a = 2, b = 6, c = 8, n = 0: No, that doesn't work
a = 2, b = 6, c = 8, n = 1: No, that doesn't work
a = 2, b = 6, c = 8, n = 2: No, that doesn't work
a = 2, b = 6, c = 8, n = 3: No, that doesn't work
a = 2, b = 6, c = 8, n = 4: No, that doesn't work
a = 2, b = 6, c = 9, n = 0: No, that doesn't work
a = 2, b = 6, c = 9, n = 1: No, that doesn't work
a = 2, b = 6, c = 9, n = 2: No, that doesn't work
a = 2, b = 6, c = 9, n = 3: No, that doesn't work
a = 2, b = 6, c = 9, n = 4: No, that doesn't work
a = 2, b = 7, c = 7, n = 0: No, that doesn't work
a = 2, b = 7, c = 7, n = 1: No, that doesn't work
a = 2, b = 7, c = 7, n = 2: No, that doesn't work
a = 2, b = 7, c = 7, n = 3: No, that doesn't work
a = 2, b = 7, c = 7, n = 4: No, that doesn't work
a = 2, b = 7, c = 8, n = 0: No, that doesn't work
a = 2, b = 7, c = 8, n = 1: No, that doesn't work
a = 2, b = 7, c = 8, n = 2: No, that doesn't work
a = 2, b = 7, c = 8, n = 3: No, that doesn't work
a = 2, b = 7, c = 8, n = 4: No, that doesn't work
a = 2, b = 7, c = 9, n = 0: No, that doesn't work
a = 2, b = 7, c = 9, n = 1: No, that doesn't work
a = 2, b = 7, c = 9, n = 2: No, that doesn't work
a = 2, b = 7, c = 9, n = 3: No, that doesn't work
a = 2, b = 7, c = 9, n = 4: No, that doesn't work
a = 2, b = 8, c = 8, n = 0: No, that doesn't work
a = 2, b = 8, c = 8, n = 1: No, that doesn't work
a = 2, b = 8, c = 8, n = 2: No, that doesn't work
a = 2, b = 8, c = 8, n = 3: No, that doesn't work
a = 2, b = 8, c = 8, n = 4: No, that doesn't work
a = 2, b = 8, c = 9, n = 0: No, that doesn't work
a = 2, b = 8, c = 9, n = 1: No, that doesn't work
a = 2, b = 8, c = 9, n = 2: No, that doesn't work
a = 2, b = 8, c = 9, n = 3: No, that doesn't work
a = 2, b = 8, c = 9, n = 4: No, that doesn't work
a = 2, b = 9, c = 9, n = 0: No, that doesn't work
a = 2, b = 9, c = 9, n = 1: No, that doesn't work
a = 2, b = 9, c = 9, n = 2: No, that doesn't work
a = 2, b = 9, c = 9, n = 3: No, that doesn't work
a = 2, b = 9, c = 9, n = 4: No, that doesn't work
a = 3, b = 3, c = 3, n = 0: No, that doesn't work
a = 3, b = 3, c = 3, n = 1: No, that doesn't work
a = 3, b = 3, c = 3, n = 2: No, that doesn't work
a = 3, b = 3, c = 3, n = 3: No, that doesn't work
a = 3, b = 3, c = 3, n = 4: No, that doesn't work
a = 3, b = 3, c = 4, n = 0: No, that doesn't work
a = 3, b = 3, c = 4, n = 1: No, that doesn't work
a = 3, b = 3, c = 4, n = 2: No, that doesn't work
a = 3, b = 3, c = 4, n = 3: No, that doesn't work
a = 3, b = 3, c = 4, n = 4: No, that doesn't work
a = 3, b = 3, c = 5, n = 0: No, that doesn't work
a = 3, b = 3, c = 5, n = 1: No, that doesn't work
a = 3, b = 3, c = 5, n = 2: No, that doesn't work
a = 3, b = 3, c = 5, n = 3: No, that doesn't work
a = 3, b = 3, c = 5, n = 4: No, that doesn't work
a = 3, b = 3, c = 6, n = 0: No, that doesn't work
a = 3, b = 3, c = 6, n = 1: No, that doesn't work
a = 3, b = 3, c = 6, n = 2: No, that doesn't work
a = 3, b = 3, c = 6, n = 3: No, that doesn't work
a = 3, b = 3, c = 6, n = 4: No, that doesn't work
a = 3, b = 3, c = 7, n = 0: No, that doesn't work
a = 3, b = 3, c = 7, n = 1: No, that doesn't work
a = 3, b = 3, c = 7, n = 2: No, that doesn't work
a = 3, b = 3, c = 7, n = 3: No, that doesn't work
a = 3, b = 3, c = 7, n = 4: No, that doesn't work
a = 3, b = 3, c = 8, n = 0: No, that doesn't work
a = 3, b = 3, c = 8, n = 1: No, that doesn't work
a = 3, b = 3, c = 8, n = 2: No, that doesn't work
a = 3, b = 3, c = 8, n = 3: No, that doesn't work
a = 3, b = 3, c = 8, n = 4: No, that doesn't work
a = 3, b = 3, c = 9, n = 0: No, that doesn't work
a = 3, b = 3, c = 9, n = 1: No, that doesn't work
a = 3, b = 3, c = 9, n = 2: No, that doesn't work
a = 3, b = 3, c = 9, n = 3: No, that doesn't work
a = 3, b = 3, c = 9, n = 4: No, that doesn't work
a = 3, b = 4, c = 4, n = 0: No, that doesn't work
a = 3, b = 4, c = 4, n = 1: No, that doesn't work
a = 3, b = 4, c = 4, n = 2: No, that doesn't work
a = 3, b = 4, c = 4, n = 3: No, that doesn't work
a = 3, b = 4, c = 4, n = 4: No, that doesn't work
a = 3, b = 4, c = 5, n = 0: No, that doesn't work
a = 3, b = 4, c = 5, n = 1: No, that doesn't work
a = 3, b = 4, c = 5, n = 2: No, that doesn't work
a = 3, b = 4, c = 5, n = 3: No, that doesn't work
a = 3, b = 4, c = 5, n = 4: No, that doesn't work
a = 3, b = 4, c = 6, n = 0: No, that doesn't work
a = 3, b = 4, c = 6, n = 1: No, that doesn't work
a = 3, b = 4, c = 6, n = 2: No, that doesn't work
a = 3, b = 4, c = 6, n = 3: No, that doesn't work
a = 3, b = 4, c = 6, n = 4: No, that doesn't work
a = 3, b = 4, c = 7, n = 0: No, that doesn't work
a = 3, b = 4, c = 7, n = 1: No, that doesn't work
a = 3, b = 4, c = 7, n = 2: No, that doesn't work
a = 3, b = 4, c = 7, n = 3: No, that doesn't work
a = 3, b = 4, c = 7, n = 4: No, that doesn't work
a = 3, b = 4, c = 8, n = 0: No, that doesn't work
a = 3, b = 4, c = 8, n = 1: No, that doesn't work
a = 3, b = 4, c = 8, n = 2: No, that doesn't work
a = 3, b = 4, c = 8, n = 3: No, that doesn't work
a = 3, b = 4, c = 8, n = 4: No, that doesn't work
a = 3, b = 4, c = 9, n = 0: No, that doesn't work
a = 3, b = 4, c = 9, n = 1: No, that doesn't work
a = 3, b = 4, c = 9, n = 2: No, that doesn't work
a = 3, b = 4, c = 9, n = 3: No, that doesn't work
a = 3, b = 4, c = 9, n = 4: No, that doesn't work
a = 3, b = 5, c = 5, n = 0: No, that doesn't work
a = 3, b = 5, c = 5, n = 1: No, that doesn't work
a = 3, b = 5, c = 5, n = 2: No, that doesn't work
a = 3, b = 5, c = 5, n = 3: No, that doesn't work
a = 3, b = 5, c = 5, n = 4: No, that doesn't work
a = 3, b = 5, c = 6, n = 0: No, that doesn't work
a = 3, b = 5, c = 6, n = 1: No, that doesn't work
a = 3, b = 5, c = 6, n = 2: No, that doesn't work
a = 3, b = 5, c = 6, n = 3: No, that doesn't work
a = 3, b = 5, c = 6, n = 4: No, that doesn't work
a = 3, b = 5, c = 7, n = 0: No, that doesn't work
a = 3, b = 5, c = 7, n = 1: No, that doesn't work
a = 3, b = 5, c = 7, n = 2: No, that doesn't work
a = 3, b = 5, c = 7, n = 3: No, that doesn't work
a = 3, b = 5, c = 7, n = 4: No, that doesn't work
a = 3, b = 5, c = 8, n = 0: No, that doesn't work
a = 3, b = 5, c = 8, n = 1: No, that doesn't work
a = 3, b = 5, c = 8, n = 2: No, that doesn't work
a = 3, b = 5, c = 8, n = 3: No, that doesn't work
a = 3, b = 5, c = 8, n = 4: No, that doesn't work
a = 3, b = 5, c = 9, n = 0: No, that doesn't work
a = 3, b = 5, c = 9, n = 1: No, that doesn't work
a = 3, b = 5, c = 9, n = 2: No, that doesn't work
a = 3, b = 5, c = 9, n = 3: No, that doesn't work
a = 3, b = 5, c = 9, n = 4: No, that doesn't work
a = 3, b = 6, c = 6, n = 0: No, that doesn't work
a = 3, b = 6, c = 6, n = 1: No, that doesn't work
a = 3, b = 6, c = 6, n = 2: No, that doesn't work
a = 3, b = 6, c = 6, n = 3: No, that doesn't work
a = 3, b = 6, c = 6, n = 4: No, that doesn't work
a = 3, b = 6, c = 7, n = 0: No, that doesn't work
a = 3, b = 6, c = 7, n = 1: No, that doesn't work
a = 3, b = 6, c = 7, n = 2: No, that doesn't work
a = 3, b = 6, c = 7, n = 3: No, that doesn't work
a = 3, b = 6, c = 7, n = 4: No, that doesn't work
a = 3, b = 6, c = 8, n = 0: No, that doesn't work
a = 3, b = 6, c = 8, n = 1: No, that doesn't work
a = 3, b = 6, c = 8, n = 2: No, that doesn't work
a = 3, b = 6, c = 8, n = 3: No, that doesn't work
a = 3, b = 6, c = 8, n = 4: No, that doesn't work
a = 3, b = 6, c = 9, n = 0: No, that doesn't work
a = 3, b = 6, c = 9, n = 1: No, that doesn't work
a = 3, b = 6, c = 9, n = 2: No, that doesn't work
a = 3, b = 6, c = 9, n = 3: No, that doesn't work
a = 3, b = 6, c = 9, n = 4: No, that doesn't work
a = 3, b = 7, c = 7, n = 0: No, that doesn't work
a = 3, b = 7, c = 7, n = 1: No, that doesn't work
a = 3, b = 7, c = 7, n = 2: No, that doesn't work
a = 3, b = 7, c = 7, n = 3: No, that doesn't work
a = 3, b = 7, c = 7, n = 4: No, that doesn't work
a = 3, b = 7, c = 8, n = 0: No, that doesn't work
a = 3, b = 7, c = 8, n = 1: No, that doesn't work
a = 3, b = 7, c = 8, n = 2: No, that doesn't work
a = 3, b = 7, c = 8, n = 3: No, that doesn't work
a = 3, b = 7, c = 8, n = 4: No, that doesn't work
a = 3, b = 7, c = 9, n = 0: No, that doesn't work
a = 3, b = 7, c = 9, n = 1: No, that doesn't work
a = 3, b = 7, c = 9, n = 2: No, that doesn't work
a = 3, b = 7, c = 9, n = 3: No, that doesn't work
a = 3, b = 7, c = 9, n = 4: No, that doesn't work
a = 3, b = 8, c = 8, n = 0: No, that doesn't work
a = 3, b = 8, c = 8, n = 1: No, that doesn't work
a = 3, b = 8, c = 8, n = 2: No, that doesn't work
a = 3, b = 8, c = 8, n = 3: No, that doesn't work
a = 3, b = 8, c = 8, n = 4: No, that doesn't work
a = 3, b = 8, c = 9, n = 0: No, that doesn't work
a = 3, b = 8, c = 9, n = 1: No, that doesn't work
a = 3, b = 8, c = 9, n = 2: No, that doesn't work
a = 3, b = 8, c = 9, n = 3: No, that doesn't work
a = 3, b = 8, c = 9, n = 4: No, that doesn't work
a = 3, b = 9, c = 9, n = 0: No, that doesn't work
a = 3, b = 9, c = 9, n = 1: No, that doesn't work
a = 3, b = 9, c = 9, n = 2: No, that doesn't work
a = 3, b = 9, c = 9, n = 3: No, that doesn't work
a = 3, b = 9, c = 9, n = 4: No, that doesn't work
a = 4, b = 4, c = 4, n = 0: No, that doesn't work
a = 4, b = 4, c = 4, n = 1: No, that doesn't work
a = 4, b = 4, c = 4, n = 2: No, that doesn't work
a = 4, b = 4, c = 4, n = 3: No, that doesn't work
a = 4, b = 4, c = 4, n = 4: No, that doesn't work
a = 4, b = 4, c = 5, n = 0: No, that doesn't work
a = 4, b = 4, c = 5, n = 1: No, that doesn't work
a = 4, b = 4, c = 5, n = 2: No, that doesn't work
a = 4, b = 4, c = 5, n = 3: No, that doesn't work
a = 4, b = 4, c = 5, n = 4: No, that doesn't work
a = 4, b = 4, c = 6, n = 0: No, that doesn't work
a = 4, b = 4, c = 6, n = 1: No, that doesn't work
a = 4, b = 4, c = 6, n = 2: No, that doesn't work
a = 4, b = 4, c = 6, n = 3: No, that doesn't work
a = 4, b = 4, c = 6, n = 4: No, that doesn't work
a = 4, b = 4, c = 7, n = 0: No, that doesn't work
a = 4, b = 4, c = 7, n = 1: No, that doesn't work
a = 4, b = 4, c = 7, n = 2: No, that doesn't work
a = 4, b = 4, c = 7, n = 3: No, that doesn't work
a = 4, b = 4, c = 7, n = 4: No, that doesn't work
a = 4, b = 4, c = 8, n = 0: No, that doesn't work
a = 4, b = 4, c = 8, n = 1: No, that doesn't work
a = 4, b = 4, c = 8, n = 2: No, that doesn't work
a = 4, b = 4, c = 8, n = 3: No, that doesn't work
a = 4, b = 4, c = 8, n = 4: No, that doesn't work
a = 4, b = 4, c = 9, n = 0: No, that doesn't work
a = 4, b = 4, c = 9, n = 1: No, that doesn't work
a = 4, b = 4, c = 9, n = 2: No, that doesn't work
a = 4, b = 4, c = 9, n = 3: No, that doesn't work
a = 4, b = 4, c = 9, n = 4: No, that doesn't work
a = 4, b = 5, c = 5, n = 0: No, that doesn't work
a = 4, b = 5, c = 5, n = 1: No, that doesn't work
a = 4, b = 5, c = 5, n = 2: No, that doesn't work
a = 4, b = 5, c = 5, n = 3: No, that doesn't work
a = 4, b = 5, c = 5, n = 4: No, that doesn't work
a = 4, b = 5, c = 6, n = 0: No, that doesn't work
a = 4, b = 5, c = 6, n = 1: No, that doesn't work
a = 4, b = 5, c = 6, n = 2: No, that doesn't work
a = 4, b = 5, c = 6, n = 3: No, that doesn't work
a = 4, b = 5, c = 6, n = 4: No, that doesn't work
a = 4, b = 5, c = 7, n = 0: No, that doesn't work
a = 4, b = 5, c = 7, n = 1: No, that doesn't work
a = 4, b = 5, c = 7, n = 2: No, that doesn't work
a = 4, b = 5, c = 7, n = 3: No, that doesn't work
a = 4, b = 5, c = 7, n = 4: No, that doesn't work
a = 4, b = 5, c = 8, n = 0: No, that doesn't work
a = 4, b = 5, c = 8, n = 1: No, that doesn't work
a = 4, b = 5, c = 8, n = 2: No, that doesn't work
a = 4, b = 5, c = 8, n = 3: No, that doesn't work
a = 4, b = 5, c = 8, n = 4: No, that doesn't work
a = 4, b = 5, c = 9, n = 0: No, that doesn't work
a = 4, b = 5, c = 9, n = 1: No, that doesn't work
a = 4, b = 5, c = 9, n = 2: No, that doesn't work
a = 4, b = 5, c = 9, n = 3: No, that doesn't work
a = 4, b = 5, c = 9, n = 4: No, that doesn't work
a = 4, b = 6, c = 6, n = 0: No, that doesn't work
a = 4, b = 6, c = 6, n = 1: No, that doesn't work
a = 4, b = 6, c = 6, n = 2: No, that doesn't work
a = 4, b = 6, c = 6, n = 3: No, that doesn't work
a = 4, b = 6, c = 6, n = 4: No, that doesn't work
a = 4, b = 6, c = 7, n = 0: No, that doesn't work
a = 4, b = 6, c = 7, n = 1: No, that doesn't work
a = 4, b = 6, c = 7, n = 2: No, that doesn't work
a = 4, b = 6, c = 7, n = 3: No, that doesn't work
a = 4, b = 6, c = 7, n = 4: No, that doesn't work
a = 4, b = 6, c = 8, n = 0: No, that doesn't work
a = 4, b = 6, c = 8, n = 1: No, that doesn't work
a = 4, b = 6, c = 8, n = 2: No, that doesn't work
a = 4, b = 6, c = 8, n = 3: No, that doesn't work
a = 4, b = 6, c = 8, n = 4: No, that doesn't work
a = 4, b = 6, c = 9, n = 0: No, that doesn't work
a = 4, b = 6, c = 9, n = 1: No, that doesn't work
a = 4, b = 6, c = 9, n = 2: No, that doesn't work
a = 4, b = 6, c = 9, n = 3: No, that doesn't work
a = 4, b = 6, c = 9, n = 4: No, that doesn't work
a = 4, b = 7, c = 7, n = 0: No, that doesn't work
a = 4, b = 7, c = 7, n = 1: No, that doesn't work
a = 4, b = 7, c = 7, n = 2: No, that doesn't work
a = 4, b = 7, c = 7, n = 3: No, that doesn't work
a = 4, b = 7, c = 7, n = 4: No, that doesn't work
a = 4, b = 7, c = 8, n = 0: No, that doesn't work
a = 4, b = 7, c = 8, n = 1: No, that doesn't work
a = 4, b = 7, c = 8, n = 2: No, that doesn't work
a = 4, b = 7, c = 8, n = 3: No, that doesn't work
a = 4, b = 7, c = 8, n = 4: No, that doesn't work
a = 4, b = 7, c = 9, n = 0: No, that doesn't work
a = 4, b = 7, c = 9, n = 1: No, that doesn't work
a = 4, b = 7, c = 9, n = 2: No, that doesn't work
a = 4, b = 7, c = 9, n = 3: No, that doesn't work
a = 4, b = 7, c = 9, n = 4: No, that doesn't work
a = 4, b = 8, c = 8, n = 0: No, that doesn't work
a = 4, b = 8, c = 8, n = 1: No, that doesn't work
a = 4, b = 8, c = 8, n = 2: No, that doesn't work
a = 4, b = 8, c = 8, n = 3: No, that doesn't work
a = 4, b = 8, c = 8, n = 4: No, that doesn't work
a = 4, b = 8, c = 9, n = 0: No, that doesn't work
a = 4, b = 8, c = 9, n = 1: No, that doesn't work
a = 4, b = 8, c = 9, n = 2: No, that doesn't work
a = 4, b = 8, c = 9, n = 3: No, that doesn't work
a = 4, b = 8, c = 9, n = 4: No, that doesn't work
a = 4, b = 9, c = 9, n = 0: No, that doesn't work
a = 4, b = 9, c = 9, n = 1: No, that doesn't work
a = 4, b = 9, c = 9, n = 2: No, that doesn't work
a = 4, b = 9, c = 9, n = 3: No, that doesn't work
a = 4, b = 9, c = 9, n = 4: No, that doesn't work
a = 5, b = 5, c = 5, n = 0: No, that doesn't work
a = 5, b = 5, c = 5, n = 1: No, that doesn't work
a = 5, b = 5, c = 5, n = 2: No, that doesn't work
a = 5, b = 5, c = 5, n = 3: No, that doesn't work
a = 5, b = 5, c = 5, n = 4: No, that doesn't work
a = 5, b = 5, c = 6, n = 0: No, that doesn't work
a = 5, b = 5, c = 6, n = 1: No, that doesn't work
a = 5, b = 5, c = 6, n = 2: No, that doesn't work
a = 5, b = 5, c = 6, n = 3: No, that doesn't work
a = 5, b = 5, c = 6, n = 4: No, that doesn't work
a = 5, b = 5, c = 7, n = 0: No, that doesn't work
a = 5, b = 5, c = 7, n = 1: No, that doesn't work
a = 5, b = 5, c = 7, n = 2: No, that doesn't work
a = 5, b = 5, c = 7, n = 3: No, that doesn't work
a = 5, b = 5, c = 7, n = 4: No, that doesn't work
a = 5, b = 5, c = 8, n = 0: No, that doesn't work
a = 5, b = 5, c = 8, n = 1: No, that doesn't work
a = 5, b = 5, c = 8, n = 2: No, that doesn't work
a = 5, b = 5, c = 8, n = 3: No, that doesn't work
a = 5, b = 5, c = 8, n = 4: No, that doesn't work
a = 5, b = 5, c = 9, n = 0: No, that doesn't work
a = 5, b = 5, c = 9, n = 1: No, that doesn't work
a = 5, b = 5, c = 9, n = 2: No, that doesn't work
a = 5, b = 5, c = 9, n = 3: No, that doesn't work
a = 5, b = 5, c = 9, n = 4: No, that doesn't work
a = 5, b = 6, c = 6, n = 0: No, that doesn't work
a = 5, b = 6, c = 6, n = 1: No, that doesn't work
a = 5, b = 6, c = 6, n = 2: No, that doesn't work
a = 5, b = 6, c = 6, n = 3: No, that doesn't work
a = 5, b = 6, c = 6, n = 4: No, that doesn't work
a = 5, b = 6, c = 7, n = 0: No, that doesn't work
a = 5, b = 6, c = 7, n = 1: No, that doesn't work
a = 5, b = 6, c = 7, n = 2: No, that doesn't work
a = 5, b = 6, c = 7, n = 3: No, that doesn't work
a = 5, b = 6, c = 7, n = 4: No, that doesn't work
a = 5, b = 6, c = 8, n = 0: No, that doesn't work
a = 5, b = 6, c = 8, n = 1: No, that doesn't work
a = 5, b = 6, c = 8, n = 2: No, that doesn't work
a = 5, b = 6, c = 8, n = 3: No, that doesn't work
a = 5, b = 6, c = 8, n = 4: No, that doesn't work
a = 5, b = 6, c = 9, n = 0: No, that doesn't work
a = 5, b = 6, c = 9, n = 1: No, that doesn't work
a = 5, b = 6, c = 9, n = 2: No, that doesn't work
a = 5, b = 6, c = 9, n = 3: No, that doesn't work
a = 5, b = 6, c = 9, n = 4: No, that doesn't work
a = 5, b = 7, c = 7, n = 0: No, that doesn't work
a = 5, b = 7, c = 7, n = 1: No, that doesn't work
a = 5, b = 7, c = 7, n = 2: No, that doesn't work
a = 5, b = 7, c = 7, n = 3: No, that doesn't work
a = 5, b = 7, c = 7, n = 4: No, that doesn't work
a = 5, b = 7, c = 8, n = 0: No, that doesn't work
a = 5, b = 7, c = 8, n = 1: No, that doesn't work
a = 5, b = 7, c = 8, n = 2: No, that doesn't work
a = 5, b = 7, c = 8, n = 3: No, that doesn't work
a = 5, b = 7, c = 8, n = 4: No, that doesn't work
a = 5, b = 7, c = 9, n = 0: No, that doesn't work
a = 5, b = 7, c = 9, n = 1: No, that doesn't work
a = 5, b = 7, c = 9, n = 2: No, that doesn't work
a = 5, b = 7, c = 9, n = 3: No, that doesn't work
a = 5, b = 7, c = 9, n = 4: No, that doesn't work
a = 5, b = 8, c = 8, n = 0: No, that doesn't work
a = 5, b = 8, c = 8, n = 1: No, that doesn't work
a = 5, b = 8, c = 8, n = 2: No, that doesn't work
a = 5, b = 8, c = 8, n = 3: No, that doesn't work
a = 5, b = 8, c = 8, n = 4: No, that doesn't work
a = 5, b = 8, c = 9, n = 0: No, that doesn't work
a = 5, b = 8, c = 9, n = 1: No, that doesn't work
a = 5, b = 8, c = 9, n = 2: No, that doesn't work
a = 5, b = 8, c = 9, n = 3: No, that doesn't work
a = 5, b = 8, c = 9, n = 4: No, that doesn't work
a = 5, b = 9, c = 9, n = 0: No, that doesn't work
a = 5, b = 9, c = 9, n = 1: No, that doesn't work
a = 5, b = 9, c = 9, n = 2: No, that doesn't work
a = 5, b = 9, c = 9, n = 3: No, that doesn't work
a = 5, b = 9, c = 9, n = 4: No, that doesn't work
a = 6, b = 6, c = 6, n = 0: No, that doesn't work
a = 6, b = 6, c = 6, n = 1: No, that doesn't work
a = 6, b = 6, c = 6, n = 2: No, that doesn't work
a = 6, b = 6, c = 6, n = 3: No, that doesn't work
a = 6, b = 6, c = 6, n = 4: No, that doesn't work
a = 6, b = 6, c = 7, n = 0: No, that doesn't work
a = 6, b = 6, c = 7, n = 1: No, that doesn't work
a = 6, b = 6, c = 7, n = 2: No, that doesn't work
a = 6, b = 6, c = 7, n = 3: No, that doesn't work
a = 6, b = 6, c = 7, n = 4: No, that doesn't work
a = 6, b = 6, c = 8, n = 0: No, that doesn't work
a = 6, b = 6, c = 8, n = 1: No, that doesn't work
a = 6, b = 6, c = 8, n = 2: No, that doesn't work
a = 6, b = 6, c = 8, n = 3: No, that doesn't work
a = 6, b = 6, c = 8, n = 4: No, that doesn't work
a = 6, b = 6, c = 9, n = 0: No, that doesn't work
a = 6, b = 6, c = 9, n = 1: No, that doesn't work
a = 6, b = 6, c = 9, n = 2: No, that doesn't work
a = 6, b = 6, c = 9, n = 3: No, that doesn't work
a = 6, b = 6, c = 9, n = 4: No, that doesn't work
a = 6, b = 7, c = 7, n = 0: No, that doesn't work
a = 6, b = 7, c = 7, n = 1: No, that doesn't work
a = 6, b = 7, c = 7, n = 2: No, that doesn't work
a = 6, b = 7, c = 7, n = 3: No, that doesn't work
a = 6, b = 7, c = 7, n = 4: No, that doesn't work
a = 6, b = 7, c = 8, n = 0: No, that doesn't work
a = 6, b = 7, c = 8, n = 1: No, that doesn't work
a = 6, b = 7, c = 8, n = 2: No, that doesn't work
a = 6, b = 7, c = 8, n = 3: No, that doesn't work
a = 6, b = 7, c = 8, n = 4: No, that doesn't work
a = 6, b = 7, c = 9, n = 0: No, that doesn't work
a = 6, b = 7, c = 9, n = 1: No, that doesn't work
a = 6, b = 7, c = 9, n = 2: No, that doesn't work
a = 6, b = 7, c = 9, n = 3: No, that doesn't work
a = 6, b = 7, c = 9, n = 4: No, that doesn't work
a = 6, b = 8, c = 8, n = 0: No, that doesn't work
a = 6, b = 8, c = 8, n = 1: No, that doesn't work
a = 6, b = 8, c = 8, n = 2: No, that doesn't work
a = 6, b = 8, c = 8, n = 3: No, that doesn't work
a = 6, b = 8, c = 8, n = 4: No, that doesn't work
a = 6, b = 8, c = 9, n = 0: No, that doesn't work
a = 6, b = 8, c = 9, n = 1: No, that doesn't work
a = 6, b = 8, c = 9, n = 2: No, that doesn't work
a = 6, b = 8, c = 9, n = 3: No, that doesn't work
a = 6, b = 8, c = 9, n = 4: No, that doesn't work
a = 6, b = 9, c = 9, n = 0: No, that doesn't work
a = 6, b = 9, c = 9, n = 1: No, that doesn't work
a = 6, b = 9, c = 9, n = 2: No, that doesn't work
a = 6, b = 9, c = 9, n = 3: No, that doesn't work
a = 6, b = 9, c = 9, n = 4: No, that doesn't work
a = 7, b = 7, c = 7, n = 0: No, that doesn't work
a = 7, b = 7, c = 7, n = 1: No, that doesn't work
a = 7, b = 7, c = 7, n = 2: No, that doesn't work
a = 7, b = 7, c = 7, n = 3: No, that doesn't work
a = 7, b = 7, c = 7, n = 4: No, that doesn't work
a = 7, b = 7, c = 8, n = 0: No, that doesn't work
a = 7, b = 7, c = 8, n = 1: No, that doesn't work
a = 7, b = 7, c = 8, n = 2: No, that doesn't work
a = 7, b = 7, c = 8, n = 3: No, that doesn't work
a = 7, b = 7, c = 8, n = 4: No, that doesn't work
a = 7, b = 7, c = 9, n = 0: No, that doesn't work
a = 7, b = 7, c = 9, n = 1: No, that doesn't work
a = 7, b = 7, c = 9, n = 2: No, that doesn't work
a = 7, b = 7, c = 9, n = 3: No, that doesn't work
a = 7, b = 7, c = 9, n = 4: No, that doesn't work
a = 7, b = 8, c = 8, n = 0: No, that doesn't work
a = 7, b = 8, c = 8, n = 1: No, that doesn't work
a = 7, b = 8, c = 8, n = 2: No, that doesn't work
a = 7, b = 8, c = 8, n = 3: No, that doesn't work
a = 7, b = 8, c = 8, n = 4: No, that doesn't work
a = 7, b = 8, c = 9, n = 0: No, that doesn't work
a = 7, b = 8, c = 9, n = 1: No, that doesn't work
a = 7, b = 8, c = 9, n = 2: No, that doesn't work
a = 7, b = 8, c = 9, n = 3: No, that doesn't work
a = 7, b = 8, c = 9, n = 4: No, that doesn't work
a = 7, b = 9, c = 9, n = 0: No, that doesn't work
a = 7, b = 9, c = 9, n = 1: No, that doesn't work
a = 7, b = 9, c = 9, n = 2: No, that doesn't work
a = 7, b = 9, c = 9, n = 3: No, that doesn't work
a = 7, b = 9, c = 9, n = 4: No, that doesn't work
a = 8, b = 8, c = 8, n = 0: No, that doesn't work
a = 8, b = 8, c = 8, n = 1: No, that doesn't work
a = 8, b = 8, c = 8, n = 2: No, that doesn't work
a = 8, b = 8, c = 8, n = 3: No, that doesn't work
a = 8, b = 8, c = 8, n = 4: No, that doesn't work
a = 8, b = 8, c = 9, n = 0: No, that doesn't work
a = 8, b = 8, c = 9, n = 1: No, that doesn't work
a = 8, b = 8, c = 9, n = 2: No, that doesn't work
a = 8, b = 8, c = 9, n = 3: No, that doesn't work
a = 8, b = 8, c = 9, n = 4: No, that doesn't work
a = 8, b = 9, c = 9, n = 0: No, that doesn't work
a = 8, b = 9, c = 9, n = 1: No, that doesn't work
a = 8, b = 9, c = 9, n = 2: No, that doesn't work
a = 8, b = 9, c = 9, n = 3: No, that doesn't work
a = 8, b = 9, c = 9, n = 4: No, that doesn't work
a = 9, b = 9, c = 9, n = 0: No, that doesn't work
a = 9, b = 9, c = 9, n = 1: No, that doesn't work
a = 9, b = 9, c = 9, n = 2: No, that doesn't work
a = 9, b = 9, c = 9, n = 3: No, that doesn't work
a = 9, b = 9, c = 9, n = 4: No, that doesn't work
Enter a: 5
Enter b: 6
Enter c: 7
Enter n: 5
No, that doesn't work
$

0 コメント:

コメントを投稿