結果

問題 No.1639 最小通信路
ユーザー とりゐとりゐ
提出日時 2021-08-06 22:18:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 155 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 81,804 KB
実行使用メモリ 75,812 KB
最終ジャッジ日時 2023-10-17 03:42:19
合計ジャッジ時間 3,849 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,444 KB
testcase_01 AC 35 ms
53,444 KB
testcase_02 AC 63 ms
70,756 KB
testcase_03 AC 75 ms
75,808 KB
testcase_04 AC 75 ms
75,812 KB
testcase_05 AC 61 ms
68,708 KB
testcase_06 AC 62 ms
68,708 KB
testcase_07 WA -
testcase_08 AC 63 ms
70,756 KB
testcase_09 AC 38 ms
53,444 KB
testcase_10 WA -
testcase_11 AC 60 ms
68,708 KB
testcase_12 AC 49 ms
61,048 KB
testcase_13 WA -
testcase_14 AC 35 ms
53,444 KB
testcase_15 AC 44 ms
55,492 KB
testcase_16 AC 62 ms
68,708 KB
testcase_17 AC 61 ms
70,756 KB
testcase_18 AC 38 ms
53,444 KB
testcase_19 AC 61 ms
68,708 KB
testcase_20 AC 61 ms
70,756 KB
testcase_21 AC 34 ms
53,444 KB
testcase_22 AC 49 ms
63,096 KB
testcase_23 AC 61 ms
68,708 KB
testcase_24 AC 48 ms
61,048 KB
testcase_25 AC 41 ms
55,492 KB
testcase_26 AC 37 ms
53,444 KB
testcase_27 WA -
testcase_28 AC 35 ms
53,444 KB
testcase_29 AC 63 ms
70,764 KB
testcase_30 AC 66 ms
72,812 KB
testcase_31 WA -
testcase_32 AC 65 ms
70,764 KB
testcase_33 AC 39 ms
53,444 KB
testcase_34 AC 64 ms
70,764 KB
testcase_35 AC 68 ms
73,596 KB
testcase_36 AC 64 ms
70,764 KB
testcase_37 AC 66 ms
70,764 KB
testcase_38 AC 36 ms
53,444 KB
testcase_39 AC 42 ms
55,492 KB
testcase_40 WA -
testcase_41 AC 38 ms
53,444 KB
testcase_42 AC 64 ms
72,812 KB
testcase_43 AC 39 ms
53,444 KB
testcase_44 AC 35 ms
53,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
x=[10**100]*n
for i in range(n*(n-1)//2):
  a,b,c=map(int,input().split())
  a-=1
  b-=1
  x[a]=min(c,x[a])
  x[b]=min(c,x[b])
print(max(x))
0