Quick actions

cmd+k|ctrl+k

Navigation

Languages

显示查密码

Snippet info

Language

Ruby

Visibility

public

Author

jiemnij

Created

2018-01-02T03:37:55Z

Updated

2018-01-02T03:37:55Z

display = 7788

cnv_tab_h = [
	 0, 80, 54, 48, 94, 35,  6, 74, 49,  5,
	70, 78, 64, 76, 13, 46, 40, 51, 42, 12,
	19, 89, 95, 72, 99, 62, 97, 92,  2, 11,
	 7, 31, 68, 60, 85, 36, 27, 63, 25, 81,
	21, 50, 41, 20, 91,  8, 16, 28, 79, 75,
	69, 37, 43, 61, 90, 84, 38, 32, 87, 98,
	 3, 67, 10, 56, 17, 26, 23, 55, 44,  4,
	93, 24, 86, 15, 88, 58, 59, 14, 65, 22,
	96, 77, 57, 66, 73, 18, 30, 29,  9, 45,
	47, 71, 33, 52, 82, 39, 53,  1, 34, 83,
]
	
cnv_tab_l = [
	 7, 94, 75,  2, 51,  4, 27, 78, 28, 85,
	44, 77, 45, 53, 20,  0, 68, 66, 13, 37,
	96, 79, 93, 89, 10, 55, 61, 26, 76, 73,
	59, 14, 21, 32, 65, 52, 42, 40, 99, 29,
	63, 88, 36, 12, 69,  1, 86, 41, 56, 30,
	72, 87, 74, 49, 43, 70, 48,  3, 24, 50,
	 6, 58,  8, 90, 54, 15, 67, 60, 82, 47,
	46,  9,  5, 57, 25, 16, 62, 81, 11, 39,
	92, 98, 33, 38, 35, 80, 23, 34, 83, 17,
	84, 91, 95, 19, 97, 18, 64, 31, 22, 71,
]

h = cnv_tab_h.index(display/100)
l = cnv_tab_l.index(display%100)
printf("Display  = %4d\nPassword = %2d%2d", display,h, l)
INFO