Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
109475 | 林泽豪 | 第k小数1 | C++ | 解答错误 | 0 | 43 MS | 280 KB | 300 | 2023-11-09 13:05:47 |
using namespace std; int a[10000]; int main() { int an,b; cin>>an>>b; for(int i=1;i<=an;i++){ cin>>a[i]; } for(int i=1;i<=b;i++){ int m=i; for(int o=i+1;o<=an;o++){ if(a[m]>a[o]){ m=o; } } swap(a[m],a[i]); } cout<<a[b]; return 0; }
8 2
8 7 6 5 4 3 2 1
2
7
exit code: 0, checker exit code: 0
15 10
41 467 334 500 169 724 478 358 962 464 705 145 281 827 961
500
4
exit code: 0, checker exit code: 0
3000 1000
41 467 334 500 169 724 478 358 962 464 705 145 281 827 961 491 995 942 827 436 391 604 902 153 292 382 421 716 718 895 447 726 771 538 869 912 667 299 35 894 703 811 322 333 673 664 141 711...
338
2006
exit code: 0, checker exit code: 0
4000 3999
41 2467 2334 2500 3169 3724 3478 1358 2962 464 1705 145 3281 827 1961 491 2995 3942 827 1436 391 2604 3902 153 292 382 1421 2716 3718 3895 1447 1726 2771 3538 1869 3912 1667 2299 1035 1894 ...
3998
266
exit code: 0, checker exit code: 0
5000 2
41 3467 1334 1500 4169 724 1478 4358 1962 4464 705 3145 3281 1827 4961 491 2995 1942 4827 436 2391 4604 3902 153 292 2382 2421 3716 4718 4895 447 1726 4771 1538 1869 4912 667 1299 2035 4894 37...
0
1774
exit code: 0, checker exit code: 0
6000 1
41 467 334 2500 1169 3724 5478 5358 2962 464 5705 4145 5281 4827 3961 491 2995 5942 4827 5436 2391 2604 3902 153 292 382 5421 716 1718 1895 5447 3726 2771 5538 1869 1912 1667 2299 5035 3894 47...
0
5047
exit code: 0, checker exit code: 0
7000 5000
41 4467 6334 5500 5169 1724 4478 1358 5962 3464 5705 145 2281 2827 2961 491 2995 4942 4827 5436 4391 604 3902 153 292 5382 3421 4716 5718 5895 5447 726 771 4538 1869 5912 4667 5299 3035 289...
4726
818
exit code: 0, checker exit code: 0
8000 7000
41 2467 6334 2500 3169 7724 3478 5358 2962 464 5705 4145 7281 827 1961 491 2995 3942 4827 5436 391 6604 3902 153 292 4382 1421 2716 3718 3895 5447 5726 6771 3538 1869 3912 1667 2299 1035 18...
6916
5049
exit code: 0, checker exit code: 0
99999 123
12090320 3853152 80579825 26610888 100721842 32784145 61264000 35348675 8069880 101596858 74546490 2242310 5259539 16846076 52718640 15671952 20882208 69266741 1547280 56572932 93230742 59...
623
Runtime Error:Segmentation fault
exit code: 0, checker exit code: 0
99999 19999
51833030 34857941 34198038 33149088 93319533 40290558 78929912 9895398 37175616 96743980 94802400 70853401 26952217 62418944 37083848 73342466 14399918 20187027 66718125 63216549 337990...
27893
Runtime Error:Segmentation fault
exit code: 0, checker exit code: 0