求助!python3全RE,样例过了,本地也没报错
查看原帖
求助!python3全RE,样例过了,本地也没报错
368017
MUCT楼主2021/5/12 14:15
a = int(input())
LUCKY = list(map(int, input().split(' ')))
SPECIAL = 0
FIRST = 0
SECOND = 0
THIRD = 0
FOURTH = 0
FIFTH = 0
SIXTH = 0
for i in range(a):
    b = list(map(int, input().split(' ')))
    if len(set(LUCKY + b)) == len(LUCKY):
        SPECIAL += 1
    if len(set(LUCKY + b)) == (len(LUCKY) + 1):
        FIRST += 1
    if len(set(LUCKY + b)) == (len(LUCKY) + 2):
        SECOND += 1
    if len(set(LUCKY + b)) == (len(LUCKY) + 3):
        THIRD += 1
    if len(set(LUCKY + b)) == (len(LUCKY) + 4):
        FOURTH += 1
    if len(set(LUCKY + b)) == (len(LUCKY) + 5):
        FIFTH += 1
    if len(set(LUCKY + b)) == (len(LUCKY) + 6):
        SIXTH += 1
    if len(set(LUCKY + b)) == (len(LUCKY) + 7):
        continue
print(str(SPECIAL) + ' ' +str(FIRST) + ' ' + str(SECOND) + ' ' + str(THIRD) + ' ' + str(FOURTH) + ' ' + str(FIFTH) + ' ' + str(SIXTH))

我的代码,样例能过,本地也没报错,但是全RE,求助

2021/5/12 14:15
加载中...