G.W. CCC 2024 Prep Problem 1: Stacy's Mom and OF
You’ve been told that Stacy’s mom has got it going on. You hate lies, so you want to figure out if that statement is true or not. A person can be considered to “have it going on” if their \(OF\) (on-factor) is strictly greater than 25. The equation to calculate one’s on-factor is:
\(OF = k{\frac q r}\)
Where \(k\) is the on-factor constant, \(q\) is magnitude of on-ness, and \(r\), is how much is going on. \(k\) has the value of 2. Given Stacy’s mom’s \(q\) and \(r\), can you determine whether she has got it going on?
The input consists of two lines. The first line contains integer \(q\), the magnitude of on-ness. \(\{\text{1 } \leq q \leq 10^{9} \}\)
The second line contains integer \(r\), how much is going on. \(\{\text{1 } \leq r \leq 10^{9} \}\)
Output “True” if Stacy’s mom has got it going on, and “False” if she does not.
Sample Input 1:
Sample Output 1:
Sample Input 2:
Sample Output 2:
Submit Solution