delay booling

This commit is contained in:
Felix Van der Jeugt 2021-12-03 14:52:49 +01:00
parent 5d8df9bd80
commit 39af5faeec
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -1,3 +1,3 @@
import sys import sys
c=''.join(["01","10"][sum(c)<len(c)/2]for c in zip(*[[c=="1" for c in l]for l in open(sys.argv[3])])) m=''.join(["01","10"][sum(f=="1"for f in c)<len(c)/2]for c in zip(*open(sys.argv[3])))
print(int(c[1::2],2)*int(c[0::2],2)) print(int(m[1::2],2)*int(m[0::2],2))