diff options
Diffstat (limited to 'challenge-322/ysth/python/ch-2.py')
| -rw-r--r-- | challenge-322/ysth/python/ch-2.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/challenge-322/ysth/python/ch-2.py b/challenge-322/ysth/python/ch-2.py new file mode 100644 index 0000000000..75301f87a5 --- /dev/null +++ b/challenge-322/ysth/python/ch-2.py @@ -0,0 +1,17 @@ +import sys + +integers = [int(value) for value in sys.argv[1:]] + +print( + " ".join( + list( + map( + { + value: str(i + 1) + for i, value in enumerate(sorted(set(integers))) + }.__getitem__, + integers, + ) + ) + ) +) |
