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