大佬们,我只有25分,帮帮我!
查看原帖
大佬们,我只有25分,帮帮我!
1489196
chenenduo楼主2024/10/31 11:10
T=int(input())
p=[]
c=0
for i in range(T):
    n,k=map(int,input().split())
    l=list(map(int,input().split()))
    x=sum(l)/n
    s=True
    for j in l:
        if abs(j-x)%k!=0:
            print("Draw")
            s=False
            break
        else:
            if j>x:
                c+=(j-x)/k
    if s:
        if c%2==0:
            print("L")
        else:
            print("F")
2024/10/31 11:10
加载中...