結果
| 問題 | No.1279 Array Battle |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-18 09:31:44 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 644 ms / 2,000 ms |
| + 777µs | |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-02 20:30:33 |
| 合計ジャッジ時間 | 5,280 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_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)