#26364: 想問有那裡漏掉 NA:80 (py


zhengyouli547@gmail.com (hahaha)


通過檢測
通過檢測
通過檢測
通過檢測

#4: 10% WA (line:1)

您的答案為: 83 10
正確答案為: 78 10
通過檢測

#6: 10% AC (22ms, 4MB)

通過檢測
通過檢測
通過檢測

#9: 10% WA (line:1)

您的答案為: 20693 4
正確答案為: 2656 4

while True: try: fntsm=input() #先水過去 from collections import Counter a=list(map(int,input().split())) c=Counter(a).most_common() xx=list(c[0])[1] #XX為眾數數量 for d in c: d=list(d) if xx==d[1]: print(d[0],xx) #輸出數值為XX的值 else: break except: break
#26369: Re:想問有那裡漏掉 NA:80 (py


cges30901 (cges30901)


通過檢測
通過檢測
通過檢測
通過檢測

#4: 10% WA (line:1)

您的答案為: 83 10
正確答案為: 78 10
通過檢測

#6: 10% AC (22ms, 4MB)

通過檢測
通過檢測
通過檢測

#9: 10% WA (line:1)

您的答案為: 20693 4
正確答案為: 2656 4

while True: try: fntsm=input() #先水過去 from collections import Counter a=list(map(int,input().split())) c=Counter(a).most_common() xx=list(c[0])[1] #XX為眾數數量 for d in c: d=list(d) if xx==d[1]: print(d[0],xx) #輸出數值為XX的值 else: break except: break

大概是順序問題?
https://zerojudge.tw/ShowThread?postid=21002&reply=0

#26373: Re:想問有那裡漏掉 NA:80 (py


cges30901 (cges30901)


通過檢測
通過檢測
通過檢測
通過檢測

#4: 10% WA (line:1)

您的答案為: 83 10
正確答案為: 78 10
通過檢測

#6: 10% AC (22ms, 4MB)

通過檢測
通過檢測
通過檢測

#9: 10% WA (line:1)

您的答案為: 20693 4
正確答案為: 2656 4

while True: try: fntsm=input() #先水過去 from collections import Counter a=list(map(int,input().split())) c=Counter(a).most_common() xx=list(c[0])[1] #XX為眾數數量 for d in c: d=list(d) if xx==d[1]: print(d[0],xx) #輸出數值為XX的值 else: break except: break

大概是順序問題?
https://zerojudge.tw/ShowThread?postid=21002&reply=0

沒錯就是順序問題...

(可以用sort來排序c)