PythonProgrammingPuzzles icon indicating copy to clipboard operation
PythonProgrammingPuzzles copied to clipboard

New puzzle

Open akalai opened this issue 4 years ago • 1 comments


def sat(s: str):
    """
    Find a string with certain characters, simple codeforces problem

    Inspired by [Codeforces Problem 133 A](https://codeforces.com/problemset/problem/133/A)
    """
    for c in ["H", "Q", "9"]:
        if c not in s:
            return False
    return True

Solvers, post your solutions in the comments using the following formatting:

<details><summary>Reveal solution</summary>

```python
def sol():
    return "world"  # replace with your solution
```
</details>

akalai avatar Jul 12 '21 23:07 akalai

Reveal solution
def sol():
    return "world"  # "HQ9"

sofiavempala avatar Jul 15 '21 19:07 sofiavempala