結果
問題 |
No.90 品物の並び替え
|
ユーザー |
![]() |
提出日時 | 2017-04-01 15:59:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 199 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-07 18:52:13 |
合計ジャッジ時間 | 893 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | RE * 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(n)]))