编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#24342 #2036. 蓝桥杯 Wrong Answer 75 693 ms 1224 K C++ / 367 B 192024211597 2024-12-21 14:37:22
显示原始代码
#include <bits/stdc++.h>
using namespace std;
bool cmp(long long x, long long y) { return x > y; }
int main() {
    long long a[100005];
    long long x, y, z;
    cin >> x >> y >> z;
    for (long long i = 0; i < x; i++) {
        cin >> a[i];
    }
    sort(a, a + x, cmp);
    long long s = 0;
    for (int i = 0; i < y; i++) {
        if (a[i] > 0)
            s += a[i];
    }
    if (s >= z)
        cout << "Yes";
    else
        cout << "No";
    return 0;
}
子任务 #1
Wrong Answer
得分:75
测试点 #1
Accepted
得分:100
用时:7 ms
内存:1180 KiB

输入文件(0.in

3 2 10
4 0 6

答案文件(0.out

Yes

用户输出

Yes

Special Judge 信息

Accepted!

系统信息

Exited with return code 0
测试点 #2
Accepted
得分:100
用时:5 ms
内存:1096 KiB

输入文件(1.in

3 2 10
4 8 6

答案文件(1.out

Yes

用户输出

Yes

Special Judge 信息

Accepted!

系统信息

Exited with return code 0
测试点 #3
Accepted
得分:100
用时:5 ms
内存:1056 KiB

输入文件(2.in

3 2 10
4 0 5

答案文件(2.out

No

用户输出

No

Special Judge 信息

Accepted!

系统信息

Exited with return code 0
测试点 #4
Accepted
得分:100
用时:5 ms
内存:1092 KiB

输入文件(3.in

3 1 10
4 8 6

答案文件(3.out

No

用户输出

No

Special Judge 信息

Accepted!

系统信息

Exited with return code 0
测试点 #5
Accepted
得分:100
用时:5 ms
内存:1184 KiB

输入文件(4.in

3 2 -1
-1 -1 -100000000000

答案文件(4.out

Yes

用户输出

Yes

Special Judge 信息

Accepted!

系统信息

Exited with return code 0
测试点 #6
Accepted
得分:100
用时:6 ms
内存:1180 KiB

输入文件(5.in

3 2 10
1 1 1

答案文件(5.out

No

用户输出

No

Special Judge 信息

Accepted!

系统信息

Exited with return code 0
测试点 #7
Wrong Answer
得分:0
用时:6 ms
内存:1116 KiB

输入文件(6.in

10 10 1000000000000000000
1000000000000000000 1000000000000000000 1000000000000000000 1000000000000
<126 bytes omitted>

答案文件(6.out

Yes

用户输出

No

Special Judge 信息

Wrong Answer! Your answer is "No",Jury's answer is "Yes"

系统信息

Exited with return code 0
测试点 #8
Accepted
得分:100
用时:80 ms
内存:1184 KiB

输入文件(7.in

100000 100000 -1000000000000000000
999999999999999999 999999999999999998 999999999999999997 9999999
<1899937 bytes omitted>

答案文件(7.out

Yes

用户输出

Yes

Special Judge 信息

Accepted!

系统信息

Exited with return code 0
测试点 #9
Wrong Answer
得分:0
用时:74 ms
内存:1176 KiB

输入文件(8.in

100000 100000 1000000000000000000
999999999999999999 999999999999999998 999999999999999997 99999999
<1899936 bytes omitted>

答案文件(8.out

Yes

用户输出

No

Special Judge 信息

Wrong Answer! Your answer is "No",Jury's answer is "Yes"

系统信息

Exited with return code 0
测试点 #10
Wrong Answer
得分:0
用时:81 ms
内存:1180 KiB

输入文件(9.in

100000 17500 -902453319573581986
220568132319119820 -606006309927785772 221817482777749182 -7792985
<1938812 bytes omitted>

答案文件(9.out

Yes

用户输出

No

Special Judge 信息

Wrong Answer! Your answer is "No",Jury's answer is "Yes"

系统信息

Exited with return code 0
测试点 #11
Wrong Answer
得分:0
用时:83 ms
内存:1224 KiB

输入文件(10.in

100000 59746 -894671582265816580
-492208032683319612 -226878609136481601 -306800644502256962 374974
<1938701 bytes omitted>

答案文件(10.out

Yes

用户输出

No

Special Judge 信息

Wrong Answer! Your answer is "No",Jury's answer is "Yes"

系统信息

Exited with return code 0
测试点 #12
Accepted
得分:100
用时:84 ms
内存:1184 KiB

输入文件(11.in

100000 71769 -777852166203488646
-326987560522471833 -887811703858463716 -665171390765756268 -50175
<1988850 bytes omitted>

答案文件(11.out

Yes

用户输出

Yes

Special Judge 信息

Accepted!

系统信息

Exited with return code 0
测试点 #13
Accepted
得分:100
用时:82 ms
内存:1192 KiB

输入文件(12.in

100000 75403 -224443883563768932
-965803835834204200 -547463733508387122 -215638566770371317 -99723
<1988848 bytes omitted>

答案文件(12.out

Yes

用户输出

Yes

Special Judge 信息

Accepted!

系统信息

Exited with return code 0
测试点 #14
Accepted
得分:100
用时:83 ms
内存:1180 KiB

输入文件(13.in

100000 59735 -908335187949265337
-244688300138684379 -860666135504880809 -159325669831553934 -60417
<1988874 bytes omitted>

答案文件(13.out

Yes

用户输出

Yes

Special Judge 信息

Accepted!

系统信息

Exited with return code 0
测试点 #15
Accepted
得分:100
用时:82 ms
内存:1176 KiB

输入文件(14.in

100000 80663 -828251309966719903
-427151939844345409 -795520490352793691 -364901579229946334 -92688
<1988882 bytes omitted>

答案文件(14.out

Yes

用户输出

Yes

Special Judge 信息

Accepted!

系统信息

Exited with return code 0
测试点 #16
Accepted
得分:100
用时:5 ms
内存:1092 KiB

输入文件(15.in

10 10 1000000000000000000
-1000000000000000000 -1000000000000000000 -1000000000000000000 -100000000
<136 bytes omitted>

答案文件(15.out

No

用户输出

No

Special Judge 信息

Accepted!

系统信息

Exited with return code 0