MultTable/VoMaKu
MultTable/kv00msu
t1(N, M) = eval(input())t1(N, M) = eval(input())
2N += 12N += 1
3count = 03count = 0
4size = len('{0} * {1} = {2} '.format(N - 1, N - 1, (N - 1) ** 2))4size = len('{0} * {1} = {2} '.format(N - 1, N - 1, (N - 1) ** 2))
5for i in range(size, M + 1, size + 2):5for i in range(size, M + 1, size + 2):
6    count += 16    count += 1
7print('=' * M)7print('=' * M)
8begin = 18begin = 1
9end = begin + count if begin + count < N else N9end = begin + count if begin + count < N else N
10while begin < N:10while begin < N:
11    for i in range(1, N):11    for i in range(1, N):
12        print('{0:{width1}} * {1:{width1}} = {2:{width2}}'.format(begin, i, i * begin, width1=len(str(N - 1)), width2=len(str((N - 1) ** 2))), end=' ')12        print('{0:{width1}} * {1:{width1}} = {2:{width2}}'.format(begin, i, i * begin, width1=len(str(N - 1)), width2=len(str((N - 1) ** 2))), end=' ')
13        for j in range(begin + 1, end):13        for j in range(begin + 1, end):
14            print('| {0:{width1}} * {1:{width1}} = {2:{width2}}'.format(j, i, i * j, width1=len(str(N - 1)), width2=len(str((N - 1) ** 2))), end=' ')14            print('| {0:{width1}} * {1:{width1}} = {2:{width2}}'.format(j, i, i * j, width1=len(str(N - 1)), width2=len(str((N - 1) ** 2))), end=' ')
15        print()15        print()
16    print('=' * M)16    print('=' * M)
17    begin = end17    begin = end
18    end = begin + count if begin + count < N else N18    end = begin + count if begin + count < N else N
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op