The problem asks us to determine the number of people with exams scheduled after person Q, based on a set of rules about exam dates during a single week (Monday to Sunday).
We have 7 individuals: P, Q, R, S, T, U, and V.
Here are the key constraints:
Let's represent the week's days:
Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
We know V is on Thursday:
| Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
| V |
The constraint "4 people between U and Q" means U and Q must be 5 days apart. Considering V is on Thursday, the only possible pairs of days are Monday and Saturday.
This arrangement fits the 5-day gap:
| Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
| U | V | Q |
This satisfies:
Remaining days: Tuesday, Wednesday, Friday, Sunday.
Remaining people: P, R, S, T.
We need to place the 'TS' block (T immediately before S).
Possible slots for TS:
Therefore, T must be on Tuesday and S on Wednesday.
| Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
| U | T | S | V | Q |
Now, check the constraint "U does not have an exam after S". U is on Monday, and S is on Wednesday. Since Monday comes before Wednesday, this condition is satisfied.
The remaining people are P and R. The remaining days are Friday and Sunday.
R cannot have an exam on Friday. So, R must take the Sunday slot, and P must take the Friday slot.
The final schedule is:
| Day | Person |
| Monday | U |
| Tuesday | T |
| Wednesday | S |
| Thursday | V |
| Friday | P |
| Saturday | Q |
| Sunday | R |
This schedule satisfies all given conditions.
This arrangement also fits the 5-day gap:
| Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
| Q | V | U |
This satisfies:
Remaining days: Tuesday, Wednesday, Friday, Sunday.
Remaining people: P, R, S, T.
Place the 'TS' block. The only possible slot is Tuesday-Wednesday.
| Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
| Q | T | S | V | U |
Now, check the constraint "U does not have an exam after S". Here, U is on Saturday, and S is on Wednesday. Since Saturday comes *after* Wednesday, this scenario violates the constraint.
Therefore, Scenario 2 is not possible.
The only valid schedule is:
Monday: U
Tuesday: T
Wednesday: S
Thursday: V
Friday: P
Saturday: Q
Sunday: R
Q's exam is on Saturday.
We need to count how many people have exams *after* Saturday.
The only day after Saturday is Sunday.
R has an exam on Sunday.
Thus, there is exactly 1 person (R) who has an exam after Q.
Each of P, Q, R, S, T, U and V has an exam on a different day of a week starting from Monday and ending on Sunday of the same week. V has an exam on Tuesday. Exactly 2 people have an exam between V and P. S has an exam immediately before T, and Q has an exam immediately after R. Only 1 person has an exam between T and R
How many people have an exam before S?
Each of P, Q, R, S, T, U and V has an exam on a different day of a week starting from Monday and ending on Sunday of the same week. Only five people have exams between T and Q. U has an exam on Thursday. S has an exam immediately after Q. R has an exam immediately after P. How many people have exams between V and T?
P, Q, R, S, T, U and V have an exam on different days of the week starting on Monday and ending on Sunday. Q has an exam on Wednesday. Exactly 4 people have an exam between T and U, neither of whom has an exam on Monday. R has an exam immediately before S and V has an exam immediately after S. P has an exam immediately before T.
How many people have an exam between P and R?