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