跳到正文

题解

abc363B

sweeny1约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2026年1月16日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#include<bits/stdc++.h>
using namespace std;
int n,t,p,a[110];
int main(){
  cin>>n>>t>>p;
  for(int i=1;i<=n;i++)cin>>a[i];
  sort(a+1,a+n+1);
  cout<<max(0,t-a[n-p+1]);
}

我不说什么了

原文