結果
| 問題 | No.90 品物の並び替え |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-04-22 17:28:52 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 212 bytes |
| 記録 | |
| コンパイル時間 | 483 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 20,748 KB |
| 最終ジャッジ日時 | 2026-04-03 05:14:21 |
| 合計ジャッジ時間 | 5,148 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 9 |
ソースコード
N,M=map(int, input().split()) s=[list(map(int,input().split())) for x in range(M)] ol=list(itertools.permutations([x for x in range(N)])) print(max([sum([(a.index(l)<a.index(r))*s for l,r,s in s]) for a in ol]))