Skip to content
This repository was archived by the owner on Feb 19, 2026. It is now read-only.
This repository was archived by the owner on Feb 19, 2026. It is now read-only.

New puzzle from codeforces 136 A #13

Description

defsat(indexes):
""" Given a list of integers representing a permutation, invert the permutation. Inspired by [Codeforces Problem 136 A](https://codeforces.com/problemset/problem/136/A) """target=[1, 3, 4, 2, 5, 6, 7]
foriinrange(1, len(target) +1):
iftarget[indexes[i-1] -1] !=i:
returnFalsereturnTrue

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>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions