結果
| 問題 | No.1279 Array Battle |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-18 09:31:44 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 719 ms / 2,000 ms |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,484 KB |
| 最終ジャッジ日時 | 2026-05-24 10:37:26 |
| 合計ジャッジ時間 | 6,622 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
import itertools as it input() A=list(map(int,input().split())) B=list(map(int,input().split())) x=c=0 for P in it.permutations(A): s=sum([max(a-b,0) for a,b in zip(P,B)]) if s>x:x=s;c=1 elif s==x:c+=1 print(c)