Google-Developer-Student-Club-CCOEW / Competitive-Coding

7 stars 52 forks source link

Question 87 #198

Open Mahi1901 opened 2 years ago

Mahi1901 commented 2 years ago

There are N students in a class. Recently, an exam on Advanced Algorithms was conducted with maximum score M and minimum score 0. The average score of the class was found out to be exactly X. Given that a student having score strictly greater than the average receives an A grade, find the maximum number of students that can receive an A grade.

Input Format First line will contain T, number of test cases. Then the test cases follow. The only line of each test case consists of three integers N,M,X - the number of students, the maximum score and the average score respectively. Output Format For each test case, output in a single line, the maximum number of students who can receive A grade.

Constraints 1≤T≤1000 2≤N≤10^7 1≤X≤M≤100

Sample 1: Input 4 2 100 50 3 100 50 5 40 40 10 50 49 Output 1 2 0 9

Shruti-78 commented 2 years ago

Shruti Koshti CCOEW SY, Comp I want to work on this issue.. Can you assign it to me?

aditi3004 commented 2 years ago

HEY!!! This is Aditi Sharma(SY-C) MKSSS's CCOEW Computer Engineering

I want to work on this issue Please assign this to me.

NikitaMiraje commented 2 years ago

Nikita Miraje CCOEW E&TC I would like to work on this issue....plz assign this to me... I have created 3 PRs till now.

siddhesh-coder commented 2 years ago

college: Dr.D.Y.Patil Institute of Engineering & Technology Ambi name: Siddhesh Bhosale Branch: computer Engineering year: BE Final Year

ShreyaShetty263 commented 2 years ago

Shreya Shetty CCOEW E&TC I would like to work on this issue....plz assign this to me... I want this to be my first pr
pl assign me this

voiDXDops commented 2 years ago

Can I have the ACCESS to answer this question?

Jishu Sengupta College: Techno Main Salt Lake, Kolkata GDSC TMSL