結果

問題 No.1639 最小通信路
ユーザー ntudantuda
提出日時 2021-08-18 22:09:52
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 359 ms
コンパイル使用メモリ 82,424 KB
実行使用メモリ 77,112 KB
最終ジャッジ日時 2024-04-20 03:11:20
合計ジャッジ時間 3,996 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,348 KB
testcase_01 AC 36 ms
53,052 KB
testcase_02 AC 63 ms
74,436 KB
testcase_03 AC 79 ms
77,112 KB
testcase_04 AC 81 ms
77,080 KB
testcase_05 AC 60 ms
70,908 KB
testcase_06 AC 60 ms
70,876 KB
testcase_07 WA -
testcase_08 AC 71 ms
74,068 KB
testcase_09 AC 36 ms
54,196 KB
testcase_10 WA -
testcase_11 AC 63 ms
72,196 KB
testcase_12 AC 50 ms
64,108 KB
testcase_13 WA -
testcase_14 AC 32 ms
53,196 KB
testcase_15 AC 46 ms
62,640 KB
testcase_16 AC 63 ms
71,764 KB
testcase_17 AC 65 ms
73,956 KB
testcase_18 AC 39 ms
53,748 KB
testcase_19 AC 61 ms
70,820 KB
testcase_20 AC 66 ms
73,312 KB
testcase_21 AC 36 ms
52,596 KB
testcase_22 AC 52 ms
64,212 KB
testcase_23 AC 63 ms
70,296 KB
testcase_24 AC 51 ms
63,900 KB
testcase_25 AC 42 ms
55,532 KB
testcase_26 AC 37 ms
54,744 KB
testcase_27 WA -
testcase_28 AC 36 ms
53,148 KB
testcase_29 AC 66 ms
73,336 KB
testcase_30 AC 69 ms
74,908 KB
testcase_31 WA -
testcase_32 AC 67 ms
73,752 KB
testcase_33 AC 39 ms
53,776 KB
testcase_34 AC 67 ms
72,880 KB
testcase_35 AC 78 ms
76,916 KB
testcase_36 AC 70 ms
73,304 KB
testcase_37 AC 69 ms
74,872 KB
testcase_38 AC 33 ms
52,472 KB
testcase_39 AC 40 ms
56,804 KB
testcase_40 WA -
testcase_41 AC 39 ms
55,048 KB
testcase_42 AC 67 ms
74,736 KB
testcase_43 AC 38 ms
54,616 KB
testcase_44 AC 35 ms
52,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ABC = [list(map(int,input().split())) for _ in range(N*(N-1)//2)]

ABC.sort(key = lambda x:x[2])
ctd = set()
ans = 0
for abc in ABC:
    a,b,c = abc
    if a in ctd and b in ctd:
        continue
    else:
        ans = max(ans,c)
        ctd.add(a)
        ctd.add(b)
print(ans)
0