1088 Threesome [PAT (Basic Level) Practice (Chinese)]
Original title link : 1088 Threesome (pintia.cn)
1 Introduction
-
PAT (Level B) 2018 Fall Examination Question 3
-
Score: 20
-
Difficulty: ⭐️⭐️⚝⚝⚝
-
Knowledge points:
- C Programming/Loop Control/Nested Loops
- C Programming/Branch Control/if-else
-
operating restrictions
Code length limit 16 KB time limit 400 ms memory limit 64 MB
2.Title description
Confucius said: "When three people walk, they must have my teacher. Choose the good ones and follow them, and change the bad ones."
In this question, the relationship between the ability values of three people A, B, and C is given: A's ability value must be a 2-digit positive integer; swapping the two numbers of A's ability value is B's ability value; the ability difference between A and B is C's ability value is X times; B's ability value is Y times C's. Please point out who is stronger than you and should "follow it", and who is weaker than you and should "change it".
Input format:
Enter in a