結果
| 問題 |
No.1279 Array Battle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-17 01:14:35 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 302 bytes |
| コンパイル時間 | 204 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 25,216 KB |
| 最終ジャッジ日時 | 2024-09-20 05:50:04 |
| 合計ジャッジ時間 | 11,983 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 TLE * 3 |
ソースコード
import itertools
N = int(input())
lsa = map(int,input().split())
lsb = list(map(int,input().split()))
lsp = itertools.permutations(lsa)
ans = 0
ansls = []
for p in lsp:
ii = 0
for i in range(N):
ii += max(p[i]-lsb[i],0)
ansls.append(ii)
ans = max(ans,ii)
print(ansls.count(ans))