結果
| 問題 | No.1279 Array Battle |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2020-11-06 21:26:17 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 88 ms / 2,000 ms |
| + 157µs | |
| コード長 | 317 bytes |
| 記録 | |
| コンパイル時間 | 228 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 84,096 KB |
| 最終ジャッジ日時 | 2026-08-23 06:53:09 |
| 合計ジャッジ時間 | 2,946 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
from itertools import permutations
N=int(input())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
Max=-1
Count=0
for alpha in permutations(A):
X=0
for i in range(N):
X+=max(0,alpha[i]-B[i])
if X==Max:
Count+=1
elif X>Max:
Max=X
Count=1
print(Count)
Kazun