結果

問題 No.2008 Super Worker
ユーザー Kiri8128Kiri8128
提出日時 2021-08-21 16:38:26
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 306 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 87,300 KB
実行使用メモリ 85,580 KB
最終ジャッジ日時 2023-09-20 10:23:59
合計ジャッジ時間 8,170 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,380 KB
testcase_01 AC 70 ms
71,236 KB
testcase_02 AC 81 ms
76,360 KB
testcase_03 AC 68 ms
71,504 KB
testcase_04 AC 67 ms
71,344 KB
testcase_05 AC 67 ms
71,448 KB
testcase_06 AC 68 ms
71,292 KB
testcase_07 AC 69 ms
71,488 KB
testcase_08 AC 72 ms
76,248 KB
testcase_09 AC 79 ms
76,356 KB
testcase_10 AC 101 ms
76,948 KB
testcase_11 AC 309 ms
76,872 KB
testcase_12 TLE -
testcase_13 TLE -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import permutations
N = int(input())
A = [int(a) for a in input().split()]
B = [int(a) for a in input().split()]
ans = 0
for a in permutations([i for i in range(N)]):
    s = 0
    l = 1
    for i in a:
        s += l * A[i]
        l *= B[i]
    ans = max(ans, s)
print(ans % (10 ** 9 + 7))
0