finally finished stonks
This commit is contained in:
10
stonks/sol.py
Executable file
10
stonks/sol.py
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
with open("data", 'r') as f:
|
||||
lines = f.readlines()
|
||||
for line in lines:
|
||||
value = int(line.strip(), 16)
|
||||
for _ in range(4):
|
||||
print(chr(value%256), end='')
|
||||
value >>= 8
|
||||
|
||||
Reference in New Issue
Block a user