結果
問題 |
No.1077 Noelちゃんと星々4
|
ユーザー |
![]() |
提出日時 | 2020-06-14 09:27:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 183 bytes |
コンパイル時間 | 86 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-06-27 00:31:51 |
合計ジャッジ時間 | 1,471 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 20 |
ソースコード
N=int(input()) Y=list(map(int,input().split())) a=sorted(set(Y)) t=[0]*len(a) for i in range(N): m=t[0] for j in range(len(a)): m=min(t,t[j]) t[j]=m+abs(Y[i]-a[j]) print(min(t))