大佬,帮帮我!!!只有25分
查看原帖
大佬,帮帮我!!!只有25分
1489196
chenenduo楼主2024/10/31 11:06

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:06
加载中...