Skip to content

New puzzle based on codeforces 133 A (harder) #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
akalai opened this issue Jul 15, 2021 · 2 comments
Open

New puzzle based on codeforces 133 A (harder) #17

akalai opened this issue Jul 15, 2021 · 2 comments

Comments

@akalai
Copy link
Contributor

akalai commented Jul 15, 2021

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>
@sofiavempala
Copy link

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

@masak
Copy link

masak commented Sep 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants