T = int(input()) for i in range(T): N, B = map(int,input().split()) A = list(map(int,input().split())) A.sort()
total = count = 0
for j in range(N): total += A[j] if total > B: print(f"Case #{i+1}: {count}") break count += 1 Why this code was showing wrong answers though I checked in Test Run mode and it was giving all answers right !!!
Hey Lokeshwar Reddy, thanks for suggetion we will make video soon on DS and AlGO in python, meanwhile you can check our problem solving videos in python playlist. Thank you
Hello, can you help me? I keep getting the wrong answer error when I try to submit my code testcase = int(input()) tc=0 while(testcase>0): housenum, budget = map(int,input().split()) hlist = list(map(int,input().split())) house = 0 hlist.sort() for i in hlist: if i
Hey, thanks for sharing this video, very helpful content. I was having an issue with kickstart. so I tried running the same code but gave me the wrong answer error on kick start. Can you help me with that?
@@codercommune Thanks alot for your help!, Here's link to the document with the code docs.google.com/document/d/1MrBRx8FtiUkaL-EU8s5xqgbecEk6OR1GWeQcZPKU4oQ/edit?usp=sharing
@@codercommune No! I have made couple versions of code but it still gives me RE (runtime error) on sample. I have tried the test mode and it works fine gives the right output
Please make videos on other rounds too
Thankyou so much you have helped a lot! I will now refer all your videos for any doubts I have!!!!
But I could find only one kickstart video is there somewhere wrong I am searching
T = int(input())
for i in range(T):
N, B = map(int,input().split())
A = list(map(int,input().split()))
A.sort()
total = count = 0
for j in range(N):
total += A[j]
if total > B:
print(f"Case #{i+1}: {count}")
break
count += 1
Why this code was showing wrong answers though I checked in Test Run mode and it was giving all answers right !!!
Bro split explain karega and tell tips for kickstart c of 17 may how to practice
Thanks buddy for your help.
Welcome ❤️
Bro make videos on ds and algo in python
Hey Lokeshwar Reddy, thanks for suggetion we will make video soon on DS and AlGO in python, meanwhile you can check our problem solving videos in python playlist. Thank you
Hello, can you help me? I keep getting the wrong answer error when I try to submit my code
testcase = int(input())
tc=0
while(testcase>0):
housenum, budget = map(int,input().split())
hlist = list(map(int,input().split()))
house = 0
hlist.sort()
for i in hlist:
if i
you have error at ur printing statement
bhai runtime error aarha jbki mera code 1 second me hi3 testcase solve krrha
pefectly output derha
Will u upload for round c also
Sure buddy❤️😊
@@codercommune the round started bro
Hey, thanks for sharing this video, very helpful content. I was having an issue with kickstart. so I tried running the same code but gave me the wrong answer error on kick start. Can you help me with that?
Share your code in comment we will solve that... Or you can change the variable name
@@codercommune Thanks alot for your help!, Here's link to the document with the code docs.google.com/document/d/1MrBRx8FtiUkaL-EU8s5xqgbecEk6OR1GWeQcZPKU4oQ/edit?usp=sharing
@@codercommune Here's my code, thank you
case = int(input())
def solution(x, B, price):
price.sort()
ans = 0
a = price[x]
while a
@@krutikpatel5477 is your problem solved??
@@codercommune No! I have made couple versions of code but it still gives me RE (runtime error) on sample.
I have tried the test mode and it works fine gives the right output
Give round C
there is a run time error
Please check code carefully dude❤️
case = int(input())
def solution(x, B, price):
price.sort()
ans = 0
a = price[x]
while a