Hello, codeforces! I am oli30twink
==================
Today I would like to describe this probem: 1878A - How Much Does Daytona Cost? From: Codeforces Round 900 (Div. 3)
I use python to solve it.
Let's start! 1. Number of tests: we should input a nuber and this number would be used in while cycle, so our beginning would be like this:
###
2. We should break into two pieces n and k given in one line, so let's write the idea down:
###
3. Let's probably do the same with line given us to check(a), it would be like:
###
4. Now let's create some variables, we would need:
###
5. Use cycle for to compare the number k and all elements from a:
###
6. Lastly, we would make the result of their comparage and use s to exclude options, where we print YES NO:
Let's sum it all up! Our programm would look like this:
Thanks for your attention and good luck!!!