結果
| 問題 | No.2008 Super Worker |
| コンテスト | |
| ユーザー |
yas_yasyu
|
| 提出日時 | 2022-07-15 22:32:42 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 377 bytes |
| 記録 | |
| コンパイル時間 | 221 ms |
| コンパイル使用メモリ | 95,976 KB |
| 実行使用メモリ | 1,342,692 KB |
| 最終ジャッジ日時 | 2026-07-31 09:08:24 |
| 合計ジャッジ時間 | 9,124 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 TLE * 1 MLE * 2 -- * 21 |
ソースコード
import itertools n = int(input()) salary = list(map(int,input().split())) jobP = list(map(int,input().split())) MOD = 10**9+7 ans = -1 for Perm in list(itertools.permutations(list(range(n)))): #print(Perm) now_ans = 0 jobPower = 1 for i in range(n): now_ans += salary[Perm[i]]*jobPower jobPower *= jobP[Perm[i]] #print(now_ans) ans = max(ans,now_ans) print(ans%MOD)
yas_yasyu