Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (34 sloc) 1.16 KB
import json
import os
def check(x):
for c in x:
if (ord(c) < 32 or ord(c) >= 128) and (ord(c) < 9 or ord(c) > 13):
return False
return True
x = [
{
"x": 1,
"y": [26,32,21,27,47,38,230,41,39,228,34,27,19,38,231,34,24,227,33,19,228,39,19,34,227,40,19,26,41,34,49,189]
}, {
"x": 2,
"y": [26,32,21,27,47,38,230,41,39,228,34,27,19,38,231,34,24,227,33,19,228,39,19,34,227,40,19,26,41,34,49,189]
}, {
"x": 3,
"y": [183,189,178,184,204,195,132,198,196,130,191,184,176,195,133,191,181,129,190,176,130,196,176,191,129,197,176,183,198,191,206,91]
}, {
"x": 4,
"y": [152,158,147,153,173,164,101,167,165,99,160,153,145,164,102,160,150,98,159,145,99,165,145,160,98,166,145,152,167,160,175,60]
}
]
for i in range(255):
f = open('a.json', 'w')
for j in range(len(x[0]["y"])):
x[0]["y"][j] = (x[0]["y"][j] + 1) % 255
f.write(json.dumps(x))
f.close()
os.system('python3 splyt.py join a.json > a.out')
g = open('a.out')
rec = g.read()
if check(rec) == False: continue
print rec
break