結果
| 問題 |
No.90 品物の並び替え
|
| コンテスト | |
| ユーザー |
ixmel
|
| 提出日時 | 2017-04-01 16:05:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 1,766 ms / 5,000 ms |
| コード長 | 198 bytes |
| コンパイル時間 | 129 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 24,832 KB |
| 最終ジャッジ日時 | 2024-07-07 18:52:35 |
| 合計ジャッジ時間 | 3,050 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 |
ソースコード
import itertools 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 itertools.permutations(range(n))]))
ixmel