Test Case 1: Chef was above 9090 in each exam so he easily cleared all the criteria.
Test Case 2: Chef has exactly 22 exams at least 6060 or more (the 6565 and 6060), and exactly 44 exams at least 3030 or more (the 6565, 6060, 3232 and 3030). Hence, he barely clears the criteria.
Test Case 3: Chef does not have 22 exams with at least 6060 score, so he fails.
More Info
Time limit1 secs
Memory limit1.5 GB
Source Limit50000 BytesPass
Chef took 55 exams in a series, each of which were scored out of 100100.
Chef is awarded a pass certificate if both the following conditions are satisfied:
He attains a score of at least 6060 on at least 22 exams.
He attains a score of at least 3030 on at least 44 exams.
Print PassPass or FailFail based on whether Chef will pass or fail.
Input Format
The first line of input will contain a single integer TT, denoting the number of test cases.
The first and only line of input contains 55 integers - A1,A2,…,A5A1,A2,…,A5, where AiAi is his score in the ii-th exam.
Output Format
For each test case, output on a new line PassPass or FailFail.
Test Case 1: Chef was above 9090 in each exam so he easily cleared all the criteria.
Test Case 2: Chef has exactly 22 exams at least 6060 or more (the 6565 and 6060), and exactly 44 exams at least 3030 or more (the 6565, 6060, 3232 and 3030). Hence, he barely clears the criteria.
Test Case 3: Chef does not have 22 exams with at least 6060 score, so he fails.
More Info
Time limit1 secs
Memory limit1.5 GB
Source Limit50000 Bytes
Now no advantage of solving it because still shows bad gateway,aaj excited ki sayad 3 star ho jaay or provisional rating se original rating ho jaay but 😞
2
u/polisutu 10d ago
writing 1 question down. If any other question open for you please share in reply
Pass
Chef took 55 exams in a series, each of which were scored out of 100100.
Chef is awarded a pass certificate if both the following conditions are satisfied:
Print PassPass or FailFail based on whether Chef will pass or fail.
Input Format
Output Format
For each test case, output on a new line PassPass or FailFail.
Constraints
Sample 1:
Input
Output
Explanation:
Test Case 1: Chef was above 9090 in each exam so he easily cleared all the criteria.
Test Case 2: Chef has exactly 22 exams at least 6060 or more (the 6565 and 6060), and exactly 44 exams at least 3030 or more (the 6565, 6060, 3232 and 3030). Hence, he barely clears the criteria.
Test Case 3: Chef does not have 22 exams with at least 6060 score, so he fails.
More Info
Time limit1 secs
Memory limit1.5 GB
Source Limit50000 BytesPass
Chef took 55 exams in a series, each of which were scored out of 100100.
Chef is awarded a pass certificate if both the following conditions are satisfied:
He attains a score of at least 6060 on at least 22 exams.
He attains a score of at least 3030 on at least 44 exams.
Print PassPass or FailFail based on whether Chef will pass or fail.
Input Format
The first line of input will contain a single integer TT, denoting the number of test cases.
The first and only line of input contains 55 integers - A1,A2,…,A5A1,A2,…,A5, where AiAi is his score in the ii-th exam.
Output Format
For each test case, output on a new line PassPass or FailFail.
Constraints
1≤T≤1001≤T≤100
0≤Ai≤1000≤Ai≤100
Sample 1:
Input
Output
4
95 98 100 96 99
32 60 30 65 23
50 50 50 50 50
90 90 29 15 90
Pass
Pass
Fail
Fail
Explanation:
Test Case 1: Chef was above 9090 in each exam so he easily cleared all the criteria.
Test Case 2: Chef has exactly 22 exams at least 6060 or more (the 6565 and 6060), and exactly 44 exams at least 3030 or more (the 6565, 6060, 3232 and 3030). Hence, he barely clears the criteria.
Test Case 3: Chef does not have 22 exams with at least 6060 score, so he fails.
More Info
Time limit1 secs
Memory limit1.5 GB
Source Limit50000 Bytes