PythonProgrammingPuzzles icon indicating copy to clipboard operation
PythonProgrammingPuzzles copied to clipboard

New puzzle based on codeforces 133 A (harder)

Open akalai opened this issue 4 years ago • 2 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 s.count(c) != 17:
            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 15 '21 19:07 akalai

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

sofiavempala avatar Jul 15 '21 19:07 sofiavempala

Reveal solution
def sol():
    return "HQ9" * 17

masak avatar Sep 24 '21 03:09 masak