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?


Input Specification:

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 Specification:

Output “True” if Stacy’s mom has got it going on, and “False” if she does not.


TIME CONSTRAINT: 1s

Sample Input 1:

40
2

Sample Output 1:

True
Explanation for Sample Input 1:
\(2 \text{ x } {\frac {40} 2} = 40\), which is greater than \(25\)


Sample Input 2:

25
2

Sample Output 2:

False


Submit Solution

Problem author: Emma