本地测试了没有问题,为什么上传提交的时候显示编译失败?

P5719 【深基4.例3】分类平均

Create321417672 @ 2022-01-29 10:13:53

numA,numB=[],[]
n,k = map(int,input().split())
if n<=10000 and  k<=100:
    for item in range(1,n+1):
        numA.append(item)  if item % k ==0 else numB.append(item)
    print(f"{sum(numA)/len(numA):.1f} {sum(numB)/len(numB):.1f}")

by Sya_Resory @ 2022-01-29 10:27:23

你语言选的啥啊/yiw


by JasonXing @ 2022-01-29 11:06:25


|