結果
| 問題 | No.615 集合に分けよう |
| コンテスト | |
| ユーザー |
kwnwsdnc
|
| 提出日時 | 2018-03-08 14:37:54 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 358 bytes |
| 記録 | |
| コンパイル時間 | 330 ms |
| コンパイル使用メモリ | 20,844 KB |
| 実行使用メモリ | 26,192 KB |
| 最終ジャッジ日時 | 2026-04-20 21:20:56 |
| 合計ジャッジ時間 | 7,765 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 11 TLE * 1 -- * 14 |
ソースコード
ln=list(map(int,input().split()))
N=list(map(int,input().split()))
M=[]
rem=[]
for i in range(0,ln[0]):
n=min(N)
M.append(n)
N.remove(n)
for i in range(0,ln[0]-1):
rem.append(M[i+1]-M[i])
ain=[]
for i in range(0,ln[0]-1):
n=min(rem)
ain.append(n)
rem.remove(n)
ans=0
for i in range(0,ln[0]-ln[1]):
ans+=ain[i]
print(ans)
kwnwsdnc