結果

問題 No.709 優勝可能性
ユーザー syunsukesyunsuke
提出日時 2018-07-08 23:38:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 822 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 15,964 KB
最終ジャッジ日時 2023-09-22 08:20:06
合計ジャッジ時間 5,894 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
15,964 KB
testcase_01 AC 16 ms
7,704 KB
testcase_02 AC 16 ms
7,652 KB
testcase_03 AC 16 ms
7,804 KB
testcase_04 AC 16 ms
7,804 KB
testcase_05 AC 16 ms
7,824 KB
testcase_06 AC 16 ms
7,808 KB
testcase_07 AC 15 ms
7,800 KB
testcase_08 AC 17 ms
7,808 KB
testcase_09 AC 16 ms
7,648 KB
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

NM=input()
NM=NM.rstrip().split(" ")
N=int(NM[0])
M=int(NM[1])

list1=[]
for i in range(M):
    list1.append([0,[0]])
#print(list1)
for j in range(N):
    line=input()
    line=line.rstrip().split(" ")
    for k in range(M):
        if int(line[k])>list1[k][0]:
            list1[k][0]=int(line[k])
            list1[k][1]=[j+1]
        elif int(line[k])==list1[k][0]:
            list1[k][1].append(j+1)
        else:
            pass
    #print(list1)
    list2=[]
    l=0
    for l in range(M):
            
        l1=[list1[l][1]]
        #print(l1)
        
        m=0
        for m in range(len(list1[l][1])):
            if list1[l][1][m] not in list2:
                list2.append(list1[l][1][m])
    #print(list2)
    if M>1:
        print(len(list2))
    else:
        print(len(list2[0]))
                    
0