Computer Science, asked by aayushijoshi0199, 5 months ago


A coding competition was conducted inside TCS campus with e employees. Data of employees who participated and who did not participate in the competition is
available. There were three problems in the coding competition. Data as mentioned below is available
The number of employees who have solved only the first, only the second and only the third problem are equal.
There are p1 employees who solved the first and the second problem.
- There are p2 employees who solved the second and the third problem
There are p3 employees who solved the third and the first problem.
There are q employees who solved all the 3 problems.
There are r employees who did not participate in the competition
Answer the following questions on the basis of data provided above.
How many employees have solved the first problem?
How many employees have solved exactly one of the 3 problems?​

Answers

Answered by KingAbby
0

Answer:

Explanation:

Mike testing 1234 1234

Answered by shrutieddula
3

Answer:

126

246

Explanation:

p1=30#who solved 1 and 2

p2=26#who solved 2 and 3

p3=28#who solved 1 and 3

q=14#who solved 1,2 and 3

total=345#total number of employees

r=43#did'nt participated at all

m=total-r

s1=p1-q#only shared between p1 and p2

s2=p2-q#only shared between p2 and p3

s3=p3-q#only shared between p3 and p1  

x=(m-(s1+s2+s3+q))//3

print(x)

ans1=x+s1+q+s3

ans2=3*x

print(ans1)

print(ans2)

Similar questions