結果
問題 | No.1279 Array Battle |
ユーザー |
|
提出日時 | 2020-11-07 16:50:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 1,794 ms / 2,000 ms |
コード長 | 209 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 25,088 KB |
最終ジャッジ日時 | 2024-07-22 14:33:48 |
合計ジャッジ時間 | 9,926 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
import itertools as t I=input def L():return list(map(int,I().split())) n,l=int(I()),[] a=L() b=L() for p in t.permutations(a,n): c=0 for i in range(n):c+=max(0,p[i]-b[i]) l.append(c) print(l.count(max(l)))