結果
| 問題 |
No.1279 Array Battle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-18 09:31:44 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 1,622 ms / 2,000 ms |
| コード長 | 213 bytes |
| コンパイル時間 | 207 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-30 20:20:15 |
| 合計ジャッジ時間 | 9,601 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)