TESTCUTOFF-Editorial

PROBLEM LINK:

[Practice] PLACEMENT TEST CUTOFF | CodeChef)
Author: Charan Narukulla

DIFFICULTY:

CAKEWALK

PREREQUISITES:

Math

PROBLEM:

Karthik got a task. He should find the status of the student in a placement exam. A student is said to be qualifiedqualified only if his total score is strictly greater than or equal to 65%. There are 2 sections in the test as follows:

  • Multiple choice questions: total 100 marks.
  • Coding round: total 150 marks.
    There is no sectional cut off.

EXPLANATION:

Compute individual section percentage and recompute it for 100%.Thereafter check if it is more than or equal to 65%.

SOLUTIONS:

Setter's Solution

#include <bits/stdc++.h>
using namespace std;

#define ll long long
int main(){
ll s;
cin>>s;
while(s–)
{
int a,b;
cin>>a>>b;
if(((a+b)*100)/250>=65){
std::cout << “qualified” << std::endl;
}
else
std::cout << “not qualified” << std::endl;
}

return 0;

}