https://atcoder.jp/contests/abc153/tasks/abc153_c
解説
https://atcoder.jp/contests/abc153/submissions/9783372
int N, K, H[201010]; //--------------------------------------------------------------------------------------------------- void _main() { cin >> N >> K; rep(i, 0, N) cin >> H[i]; sort(H, H + N); ll ans = 0; rep(i, 0, N - K) ans += H[i]; cout << ans << endl; }