fork(1) download
  1. f = lambda x:'%x'%(`[''.join('%x'%int(s[i:i+4],2)for s in x)for i in range(9)]`.find('beef')+15)
  2.  
  3. for x in ['111001111110', '110100100000', '010001111101', '100100100100', '100101100111', '111111000010', '110111000001', '100111100001', '100111011111', '111110011111', '100001010111', '110011000011'], ['010011000110', '110000100011', '010111100100', '111110011101', '011101110010', '000101111011', '101100111010', '101101101110', '010111001000', '010111001111', '110111101101', '001001111001'], ['101011101100', '000011001110', '000010010100', '001011111011', '000110101101', '010011111010', '100001111010', '100110111111', '000000101010', '011001101110', '000101101011', '010001111001'], ['110110011110', '110110101110', '011101011010', '011101011110', '011111010011', '010110100010', '100101001111', '101011111000', '010110001000', '011110000011', '101000110101', '001000000111'], ['111001001101', '100101001110', '100010100000', '011000101111', '011101001001', '111110000001', '101100110000', '110000000010', '000111011011', '100101001110', '011100101110', '000001111111'], ['000101101001', '010011111011', '110011101000', '101100111110', '111010010101', '111011111001', '111110000011', '110101001101', '101101000110', '000111000000', '110000011101', '000000010110'], ['111001011010', '101100100100', '011000100011', '110111111110', '010101111010', '110100000011', '011011001101', '101001110110', '100000011100', '101001111101', '001011011110', '000100000101']:
  4. print f(x)
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
45
48
75
22
99
14
88