結果
| 問題 |
No.90 品物の並び替え
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-15 21:07:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 614 ms / 5,000 ms |
| コード長 | 215 bytes |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 82,344 KB |
| 実行使用メモリ | 99,664 KB |
| 最終ジャッジ日時 | 2024-06-23 19:03:27 |
| 合計ジャッジ時間 | 1,968 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 |
ソースコード
from itertools import permutations N, M = map(int,input().split()) S = [list(map(int,input().split())) for _ in range(M)] print(max([sum([C if T[A] < T[B] else 0 for A, B, C in S]) for T in permutations(range(N))]))