結果
問題 |
No.1279 Array Battle
|
ユーザー |
![]() |
提出日時 | 2020-12-02 13:12:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 259 bytes |
コンパイル時間 | 303 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-13 09:14:13 |
合計ジャッジ時間 | 1,498 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 20 |
ソースコード
from itrtools import permutations n=int(input()) a=[int(x)for x in input().split()] b=[int(s)for s in input().split()] d={} for x in permutations(a): t=0 for i in range(n): t+=max(x[i]-b[i],0) d.setdefault(t,0) d[t]+=1 print(d[max(d)])