結果
| 問題 | No.1279 Array Battle |
| コンテスト | |
| ユーザー |
37zigen
|
| 提出日時 | 2020-11-06 22:23:24 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 892 ms / 2,000 ms |
| + 175µs | |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 284 ms |
| コンパイル使用メモリ | 21,664 KB |
| 実行使用メモリ | 29,440 KB |
| 最終ジャッジ日時 | 2026-08-23 07:31:48 |
| 合計ジャッジ時間 | 7,551 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
import itertools
n=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
l=[]
for p in itertools.permutations(a,n):
score=0
for i in range(n):
score+=max(0,p[i]-b[i])
l.append(score)
print(l.count(max(l)))
37zigen