帮助...........
查看原帖
帮助...........
1556684
Liao_Zongze楼主2025/2/5 10:08
a=int(input())
b=input().split()
j=0
c=[]
def hello(o):
    j=0
    for s in range(o-1):
        if b[o]==b[s]:
            b[s]+=1
            j=1
    if j==1:
        fuck(o-1)
for i in range(a):
    if i==0:
        pass
    else:
        hello(i)
print(c)

为什么输出不对呢????

别管输出的是列表

2025/2/5 10:08
加载中...