用户输出
Yes
Special Judge 信息
Accepted!
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#25133 | #2036. 蓝桥杯 | Time Limit Exceeded | 94 | 1675 ms | 13712 K | Python 3 / 405 B | 192024211766 | 2024-12-21 17:57:56 |
n,k,y=input().split()
n=int(n)
k=int(k)
y=int(y)
a=input().split()
for i in range(n):
a[i]=int(a[i])
ans=0
ls=[]
pp=1
for i in range(n):
if(len(ls)<k):
ls.append(a[i])
else:
if(min(ls)<a[i]):
m_i=ls.index(min(ls))
ls[m_i]=a[i]
ans=sum(ls)
if(ans>=y):
print("Yes")
pp=0
break
if(pp):
print("No")
用户输出
Yes
Special Judge 信息
Accepted!
系统信息
Exited with return code 0
用户输出
Yes
Special Judge 信息
Accepted!
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Accepted!
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Accepted!
系统信息
Exited with return code 0
用户输出
Yes
Special Judge 信息
Accepted!
系统信息
Exited with return code 0
用户输出
No
Special Judge 信息
Accepted!
系统信息
Exited with return code 0
10 10 1000000000000000000
1000000000000000000 1000000000000000000 1000000000000000000 1000000000000
<126 bytes omitted>
用户输出
Yes
Special Judge 信息
Accepted!
系统信息
Exited with return code 0
100000 100000 -1000000000000000000
999999999999999999 999999999999999998 999999999999999997 9999999
<1899937 bytes omitted>
用户输出
Yes
Special Judge 信息
Accepted!
系统信息
Exited with return code 0
100000 100000 1000000000000000000
999999999999999999 999999999999999998 999999999999999997 99999999
<1899936 bytes omitted>
用户输出
Yes
Special Judge 信息
Accepted!
系统信息
Exited with return code 0
100000 17500 -902453319573581986
220568132319119820 -606006309927785772 221817482777749182 -7792985
<1938812 bytes omitted>
用户输出
Yes
Special Judge 信息
Accepted!
系统信息
Exited with return code 0
100000 59746 -894671582265816580
-492208032683319612 -226878609136481601 -306800644502256962 374974
<1938701 bytes omitted>
用户输出
Yes
Special Judge 信息
Accepted!
系统信息
Exited with return code 0
100000 71769 -777852166203488646
-326987560522471833 -887811703858463716 -665171390765756268 -50175
<1988850 bytes omitted>
用户输出
Yes
Special Judge 信息
Accepted!
系统信息
Exited with return code 0
100000 75403 -224443883563768932
-965803835834204200 -547463733508387122 -215638566770371317 -99723
<1988848 bytes omitted>
100000 59735 -908335187949265337
-244688300138684379 -860666135504880809 -159325669831553934 -60417
<1988874 bytes omitted>
用户输出
Yes
Special Judge 信息
Accepted!
系统信息
Exited with return code 0
100000 80663 -828251309966719903
-427151939844345409 -795520490352793691 -364901579229946334 -92688
<1988882 bytes omitted>
用户输出
Yes
Special Judge 信息
Accepted!
系统信息
Exited with return code 0