小学奥数题居然要写代码
import matplotlib.pyplot as plt
import math
list=[]
for i in range(2,11):
for j in range(2,11):
if i+j>11 and i!=j:
#if i+j>11:
item_a=[i,j]
item_r=item_a.copy()
item_r.reverse()
if item_r not in list:
list.append(item_a)
cos=(i**2+11**2-j**2)/(2*i*11)
sin=math.sqrt(1-cos**2)
x=[0,11,i*cos,0]
y=[0,0,i*sin,0]
plt.plot(x,y)
for k in range(len(list)):
print(k,list[k])