delay booling
This commit is contained in:
parent
5d8df9bd80
commit
39af5faeec
@ -1,3 +1,3 @@
|
||||
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])]))
|
||||
print(int(c[1::2],2)*int(c[0::2],2))
|
||||
m=''.join(["01","10"][sum(f=="1"for f in c)<len(c)/2]for c in zip(*open(sys.argv[3])))
|
||||
print(int(m[1::2],2)*int(m[0::2],2))
|
||||
|
Loading…
Reference in New Issue
Block a user