level09
This commit is contained in:
parent
890a4c0d5e
commit
0dc6576ed1
5 changed files with 120 additions and 0 deletions
12
levels/09/script.py
Executable file
12
levels/09/script.py
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env python
|
||||
import sys
|
||||
|
||||
buf = sys.stdin.buffer.read()
|
||||
buf = buf.strip(b'\n')
|
||||
|
||||
for i, b in enumerate(buf):
|
||||
b = b - i
|
||||
if b < 0:
|
||||
b = 255 + b
|
||||
sys.stdout.buffer.write(b.to_bytes())
|
||||
print()
|
||||
Loading…
Add table
Add a link
Reference in a new issue