結果
| 問題 | No.1279 Array Battle |
| コンテスト | |
| ユーザー |
野田正太
|
| 提出日時 | 2020-12-02 13:12:04 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 259 bytes |
| 記録 | |
| コンパイル時間 | 302 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 20,604 KB |
| 最終ジャッジ日時 | 2026-08-26 01:47:15 |
| 合計ジャッジ時間 | 6,285 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)])
野田正太