#C3067. Extra Plant Growth Determination
Extra Plant Growth Determination
Extra Plant Growth Determination
This problem involves determining whether a plant exhibits additional growth on a given day due to a genetic mutation. The plant normally grows every d days, but due to mutation, it grows an extra centimeter on days where the condition \(day \mod g = 0\) holds, where \(g\) is a given interval. Given the integers d and g along with a list of days, your task is to check whether each day qualifies for additional growth. Output "YES" if the extra growth occurs and "NO" otherwise. Note that although the parameter d is provided, it does not affect the additional growth decision.
inputFormat
The first line of input contains two space-separated integers, d and g.
The second line contains a single integer, n, representing the number of days to check.
The third line contains n space-separated integers, each representing a day.
outputFormat
For each day given in the input, output "YES" if the day is a multiple of g (i.e. if \(day \mod g = 0\)), and "NO" otherwise. Each result should be printed on a separate line.
## sample3 5
4
1 5 15 20
NO
YES
YES
YES
</p>