Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
109355 | wwzzzzzz | 第k小数1 | C++ | 通过 | 100 | 27 MS | 1816 KB | 313 | 2023-11-08 13:37:12 |
using namespace std; int n,m,k; int a[1000010],b[1000010]; signed main(){ cin>>n>>m; for(int i=1;i<=n;i++){ cin>>a[i]; b[i]=a[i]; } sort(a+1,a+n+1); for(int i=1;i<=n;i++){ if(b[i]==a[m]){ cout<<i<<endl; break; } } return 0; }
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0