結果
| 問題 | No.90 品物の並び替え | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-04-22 17:29:27 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 229 bytes | 
| コンパイル時間 | 85 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 72,352 KB | 
| 最終ジャッジ日時 | 2024-07-21 16:10:20 | 
| 合計ジャッジ時間 | 8,309 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 8 TLE * 1 | 
ソースコード
import itertools 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]))
