精华内容
下载资源
问答
  • ASCII码规律

    千次阅读 2013-08-04 16:53:40
     ,首先要观察一下ASCII 的内在规律。 (1)此表的构造为16行8列。 (2)整张表可以分为两部分:靠近左侧的3列为不常用的,右侧4列为常用的。 (3)英文字母本身只有26个,因此需要在两列展示。  ...

     

         字母和数字的 ASCII 码的记忆是非常简单的。        

       一,首先要观察一下ASCII 码的内在规律。

    (1)此表的构造为16行8列。

    (2)整张表可以分为两部分:靠近左侧的3列为不常用的,右侧4列为常用的。

    (3)英文字母本身只有26个,因此需要在两列展示。

         二,对于常用的部分,我们只要记住了几个字母或数字 的 ASCII 码:

    (1)  

                     A 的 ASCII  码为  65

                     a 的 ASCII  码为  97

                     0 的 ASCII  码为  48

     

    (2)或者,记忆                十六进制(H)

                                1     31

                                A     41

                                a     61

       以此类推

    知道相应的大小 写字母之间差 32 ,就可以推算出其余字母、数字的 ASCII 码。

       三, 对于不常用的部分

    我们只要简要的记住以下四个就可以了:

                                          二进制(B)   十六进制(H)   十进制(D) 

        CR   回车键                      0000,1101     0D              13

        LF   软回车键(用于word文档)    0000,1010     0A              10

        ESC  退出键                      0001,1011     1B              27

        SP   空格键                      0010,0000     20              32   

        虽然标准 ASCII 码是 7 位编码,但由于计算机基本处理单位为字节( 1byte = 8bit ),所以一般仍以一个字节来存放一个 ASCII 字符。每一个字节中多余出 来的一位(最高位)在计算机内部通常保持为 0

    展开全文
  • tips:所有手机号均为随机创建的,为了做查询的效果展示,不涉及他人隐私。 mysql手机号码规律查询tips:所有手机号均为随机创建的,为了做查询的效果展示...数据库中的表只使用了个字段:phone_number 全号规律 AAA

    tips:所有手机号均为随机创建的,为了做查询的效果展示,不涉及他人隐私。

    数据库

    数据库中的表只使用了一个字段:phone_number
    在这里插入图片描述

    全号规律

    AAA

    select phone_number from `phone_number` where 
    (
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,3,1)
    and
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,4,1)
    )
    OR
    (
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,4,1)
    and
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,5,1)
    )
    OR
    (
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,6,1)
    )
    OR
    (
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,7,1)
    )
    OR
    (
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,8,1)
    )
    OR
    (
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,9,1)
    )
    OR
    (
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,9,1)
    and
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,10,1)
    )
    OR
    (
    SUBSTR(phone_number,9,1) = SUBSTR(phone_number,10,1)
    and
    SUBSTR(phone_number,9,1) = SUBSTR(phone_number,11,1)
    )
    

    在这里插入图片描述

    ABAB

    select phone_number from `phone_number` where 
    (
    SUBSTR(phone_number,1,1) != SUBSTR(phone_number,2,1)
    and
    SUBSTR(phone_number,1,1) = SUBSTR(phone_number,3,1)
    AND
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,4,1)
    )
    or
    (
    SUBSTR(phone_number,2,1) != SUBSTR(phone_number,3,1)
    and
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,4,1)
    AND
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,5,1)
    )
    or
    (
    SUBSTR(phone_number,3,1) != SUBSTR(phone_number,4,1)
    and
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,5,1)
    AND
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,6,1)
    )
    or
    (
    SUBSTR(phone_number,4,1) != SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,6,1)
    AND
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,7,1)
    )
    or
    (
    SUBSTR(phone_number,5,1) != SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,7,1)
    AND
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,8,1)
    )
    or
    (
    SUBSTR(phone_number,6,1) != SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,8,1)
    AND
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,9,1)
    )
    or
    (
    SUBSTR(phone_number,7,1) != SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,9,1)
    AND
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,10,1)
    )
    or
    (
    SUBSTR(phone_number,8,1) != SUBSTR(phone_number,9,1)
    and
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,10,1)
    AND
    SUBSTR(phone_number,9,1) = SUBSTR(phone_number,11,1)
    )
    

    在这里插入图片描述

    AABBCC

    select phone_number from `phone_number` where 
    (
    SUBSTR(phone_number,1,1) != SUBSTR(phone_number,3,1)
    and
    SUBSTR(phone_number,1,1) != SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,3,1) != SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,1,1) = SUBSTR(phone_number,2,1)
    AND
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,4,1)
    AND
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,6,1)
    )
    or
    (
    SUBSTR(phone_number,2,1) != SUBSTR(phone_number,4,1)
    and
    SUBSTR(phone_number,2,1) != SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,4,1) != SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,3,1)
    AND
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,5,1)
    AND
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,7,1)
    )
    or
    (
    SUBSTR(phone_number,3,1) != SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,3,1) != SUBSTR(phone_number,7,1)
    AND
    SUBSTR(phone_number,5,1) != SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,4,1)
    AND
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,6,1)
    AND
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,8,1)
    )
    or
    (
    SUBSTR(phone_number,4,1) != SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,4,1) != SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,6,1) != SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,5,1)
    AND
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,7,1)
    AND
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,9,1)
    )
    or
    (
    SUBSTR(phone_number,5,1) != SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,5,1) != SUBSTR(phone_number,9,1)
    and
    SUBSTR(phone_number,7,1) != SUBSTR(phone_number,9,1)
    and
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,6,1)
    AND
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,8,1)
    AND
    SUBSTR(phone_number,9,1) = SUBSTR(phone_number,10,1)
    )
    or
    (
    SUBSTR(phone_number,6,1) != SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,6,1) != SUBSTR(phone_number,10,1)
    and
    SUBSTR(phone_number,8,1) != SUBSTR(phone_number,10,1)
    and
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,7,1)
    AND
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,9,1)
    AND
    SUBSTR(phone_number,10,1) = SUBSTR(phone_number,11,1)
    )
    

    在这里插入图片描述

    ABCD(顺子,1234或4321)

    select phone_number from `phone_number` where 
    (
    	(
    	SUBSTR(phone_number,1,1) = (SUBSTR(phone_number,2,1)+1)
    	and
    	SUBSTR(phone_number,2,1) = (SUBSTR(phone_number,3,1)+1)
    	and
    	SUBSTR(phone_number,3,1) = (SUBSTR(phone_number,4,1)+1)
    	)
    	OR
    	(
    	SUBSTR(phone_number,1,1) = (SUBSTR(phone_number,2,1)-1)
    	and
    	SUBSTR(phone_number,2,1) = (SUBSTR(phone_number,3,1)-1)
    	and
    	SUBSTR(phone_number,3,1) = (SUBSTR(phone_number,4,1)-1)
    	)
    )
    OR
    (
    	(
    	SUBSTR(phone_number,2,1) = (SUBSTR(phone_number,3,1)+1)
    	and
    	SUBSTR(phone_number,3,1) = (SUBSTR(phone_number,4,1)+1)
    	and
    	SUBSTR(phone_number,4,1) = (SUBSTR(phone_number,5,1)+1)
    	)
    	or
    	(
    	SUBSTR(phone_number,2,1) = (SUBSTR(phone_number,3,1)-1)
    	and
    	SUBSTR(phone_number,3,1) = (SUBSTR(phone_number,4,1)-1)
    	and
    	SUBSTR(phone_number,4,1) = (SUBSTR(phone_number,5,1)-1)
    	)
    )
    OR
    (
    	(
    	SUBSTR(phone_number,3,1) = (SUBSTR(phone_number,4,1)+1)
    	and
    	SUBSTR(phone_number,4,1) = (SUBSTR(phone_number,5,1)+1)
    	and
    	SUBSTR(phone_number,5,1) = (SUBSTR(phone_number,6,1)+1)
    	)
    	OR
    	(
    	SUBSTR(phone_number,3,1) = (SUBSTR(phone_number,4,1)-1)
    	and
    	SUBSTR(phone_number,4,1) = (SUBSTR(phone_number,5,1)-1)
    	and
    	SUBSTR(phone_number,5,1) = (SUBSTR(phone_number,6,1)-1)
    	)
    )
    OR
    (
    	(
    	SUBSTR(phone_number,4,1) = (SUBSTR(phone_number,5,1)+1)
    	and
    	SUBSTR(phone_number,5,1) = (SUBSTR(phone_number,6,1)+1)
    	AND
    	SUBSTR(phone_number,6,1) = (SUBSTR(phone_number,7,1)+1)
    	)
    	OR
    	(
    	SUBSTR(phone_number,4,1) = (SUBSTR(phone_number,5,1)-1)
    	and
    	SUBSTR(phone_number,5,1) = (SUBSTR(phone_number,6,1)-1)
    	AND
    	SUBSTR(phone_number,6,1) = (SUBSTR(phone_number,7,1)-1)
    	)
    )
    OR
    (
    	(
    	SUBSTR(phone_number,5,1) = (SUBSTR(phone_number,6,1)+1)
    	and
    	SUBSTR(phone_number,6,1) = (SUBSTR(phone_number,7,1)+1)
    	and
    	SUBSTR(phone_number,7,1) = (SUBSTR(phone_number,8,1)+1)
    	)
    	OR
    	(
    	SUBSTR(phone_number,5,1) = (SUBSTR(phone_number,6,1)-1)
    	and
    	SUBSTR(phone_number,6,1) = (SUBSTR(phone_number,7,1)-1)
    	and
    	SUBSTR(phone_number,7,1) = (SUBSTR(phone_number,8,1)-1)
    	)
    )
    OR
    (
    	(
    	SUBSTR(phone_number,6,1) = (SUBSTR(phone_number,7,1)+1)
    	and
    	SUBSTR(phone_number,7,1) = (SUBSTR(phone_number,8,1)+1)
    	and
    	SUBSTR(phone_number,8,1) = (SUBSTR(phone_number,9,1)+1)
    	)
    	OR
    	(
    	SUBSTR(phone_number,6,1) = (SUBSTR(phone_number,7,1)-1)
    	and
    	SUBSTR(phone_number,7,1) = (SUBSTR(phone_number,8,1)-1)
    	and
    	SUBSTR(phone_number,8,1) = (SUBSTR(phone_number,9,1)-1)
    	)
    )
    OR
    (
    	(
    	SUBSTR(phone_number,7,1) = (SUBSTR(phone_number,8,1)+1)
    	and
    	SUBSTR(phone_number,8,1) = (SUBSTR(phone_number,9,1)+1)
    	and
    	SUBSTR(phone_number,9,1) = (SUBSTR(phone_number,10,1)+1)
    	)
    	OR
    	(
    	SUBSTR(phone_number,7,1) = (SUBSTR(phone_number,8,1)-1)
    	and
    	SUBSTR(phone_number,8,1) = (SUBSTR(phone_number,9,1)-1)
    	and
    	SUBSTR(phone_number,9,1) = (SUBSTR(phone_number,10,1)-1)
    	)
    )
    OR
    (
    	(
    	SUBSTR(phone_number,8,1) = (SUBSTR(phone_number,9,1)+1)
    	and
    	SUBSTR(phone_number,9,1) = (SUBSTR(phone_number,10,1)+1)
    	AND
    	SUBSTR(phone_number,10,1) = (SUBSTR(phone_number,11,1)+1)
    	)
    	OR
    	(
    	SUBSTR(phone_number,8,1) = (SUBSTR(phone_number,9,1)-1)
    	and
    	SUBSTR(phone_number,9,1) = (SUBSTR(phone_number,10,1)-1)
    	AND
    	SUBSTR(phone_number,10,1) = (SUBSTR(phone_number,11,1)-1)
    	)
    )
    

    在这里插入图片描述

    AAABBB

    select phone_number from `phone_number` where
    (
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,3,1)
    and
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,4,1)
    and
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,7,1)
    )
    OR
    (
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,4,1)
    and
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,8,1)
    )
    OR
    (
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,9,1)
    )
    OR
    (
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,9,1)
    and
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,10,1)
    )
    OR
    (
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,9,1) = SUBSTR(phone_number,10,1)
    and
    SUBSTR(phone_number,9,1) = SUBSTR(phone_number,11,1)
    )
    

    在这里插入图片描述

    6多8多9多(举例:11位的号码中存在超过6个)

    tips:这里采用了一种比较巧妙的方式. 将存在6的号码替换为空,将11位减去替换后的长度就是6出现的个数.以此类推,将6的个数+8的个数+9的个数

    select phone_number from `phone_number` where
    (
    	(LENGTH(phone_number) - LENGTH(REPLACE(phone_number,"6",""))) +
    	(LENGTH(phone_number) - LENGTH(REPLACE(phone_number,"8",""))) +
    	(LENGTH(phone_number) - LENGTH(REPLACE(phone_number,"9",""))) 
    )>6
    

    在这里插入图片描述

    ABBCCDDA(更新时间:2021/04/21)

    select * from `phone_number` where  
    (																											
    SUBSTR(phone_number,1,1) != SUBSTR(phone_number,2,1)
    and
    SUBSTR(phone_number,1,1) != SUBSTR(phone_number,4,1)
    and
    SUBSTR(phone_number,1,1) != SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,1,1) = SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,2,1) != SUBSTR(phone_number,4,1)
    and
    SUBSTR(phone_number,2,1) != SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,3,1)
    and
    SUBSTR(phone_number,4,1) != SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,7,1)
    )
    or
    (
    SUBSTR(phone_number,2,1) != SUBSTR(phone_number,3,1)
    and
    SUBSTR(phone_number,2,1) != SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,2,1) != SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,9,1)
    and
    SUBSTR(phone_number,3,1) != SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,3,1) != SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,4,1)
    and
    SUBSTR(phone_number,5,1) != SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,8,1)
    )
    or
    (
    SUBSTR(phone_number,3,1) != SUBSTR(phone_number,4,1)
    and
    SUBSTR(phone_number,3,1) != SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,3,1) != SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,10,1)
    and
    SUBSTR(phone_number,4,1) != SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,4,1) != SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,6,1) != SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,9,1)
    )
    or
    (
    SUBSTR(phone_number,4,1) != SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,4,1) != SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,4,1) != SUBSTR(phone_number,9,1)
    and
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,11,1)
    and
    SUBSTR(phone_number,5,1) != SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,5,1) != SUBSTR(phone_number,9,1)
    and
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,7,1) != SUBSTR(phone_number,9,1)
    and
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,9,1) = SUBSTR(phone_number,10,1)
    )
    

    ABBCCDDA

    中间规律

    AAA

    select phone_number from `phone_number` where
    (
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,3,1)
    and
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,4,1)
    )
    OR
    (
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,4,1)
    and
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,5,1)
    )
    OR
    (
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,6,1)
    )
    OR
    (
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,7,1)
    )
    OR
    (
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,8,1)
    )
    OR
    (
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,9,1)
    )
    OR
    (
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,9,1)
    and
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,10,1)
    )
    

    在这里插入图片描述

    ABAB

    select phone_number from `phone_number` where
    (
    SUBSTR(phone_number,1,1) != SUBSTR(phone_number,2,1)
    and
    SUBSTR(phone_number,1,1) = SUBSTR(phone_number,3,1)
    AND
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,4,1)
    )
    or
    (
    SUBSTR(phone_number,2,1) != SUBSTR(phone_number,3,1)
    and
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,4,1)
    AND
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,5,1)
    )
    or
    (
    SUBSTR(phone_number,3,1) != SUBSTR(phone_number,4,1)
    and
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,5,1)
    AND
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,6,1)
    )
    or
    (
    SUBSTR(phone_number,4,1) != SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,6,1)
    AND
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,7,1)
    )
    or
    (
    SUBSTR(phone_number,5,1) != SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,7,1)
    AND
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,8,1)
    )
    or
    (
    SUBSTR(phone_number,6,1) != SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,8,1)
    AND
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,9,1)
    )
    or
    (
    SUBSTR(phone_number,7,1) != SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,9,1)
    AND
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,10,1)
    )
    

    在这里插入图片描述

    AABBCC

    select phone_number from `phone_number` where
    (
    SUBSTR(phone_number,1,1) != SUBSTR(phone_number,3,1)
    and
    SUBSTR(phone_number,1,1) != SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,3,1) != SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,1,1) = SUBSTR(phone_number,2,1)
    AND
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,4,1)
    AND
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,6,1)
    )
    or
    (
    SUBSTR(phone_number,2,1) != SUBSTR(phone_number,4,1)
    and
    SUBSTR(phone_number,2,1) != SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,4,1) != SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,3,1)
    AND
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,5,1)
    AND
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,7,1)
    )
    or
    (
    SUBSTR(phone_number,3,1) != SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,3,1) != SUBSTR(phone_number,7,1)
    AND
    SUBSTR(phone_number,5,1) != SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,4,1)
    AND
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,6,1)
    AND
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,8,1)
    )
    or
    (
    SUBSTR(phone_number,4,1) != SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,4,1) != SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,6,1) != SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,5,1)
    AND
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,7,1)
    AND
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,9,1)
    )
    or
    (
    SUBSTR(phone_number,5,1) != SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,5,1) != SUBSTR(phone_number,9,1)
    and
    SUBSTR(phone_number,7,1) != SUBSTR(phone_number,9,1)
    and
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,6,1)
    AND
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,8,1)
    AND
    SUBSTR(phone_number,9,1) = SUBSTR(phone_number,10,1)
    )
    

    在这里插入图片描述

    ABCD(顺子,1234或4321)

    select phone_number from `phone_number` where
    (
    	(
    	SUBSTR(phone_number,1,1) = (SUBSTR(phone_number,2,1)+1)
    	and
    	SUBSTR(phone_number,2,1) = (SUBSTR(phone_number,3,1)+1)
    	and
    	SUBSTR(phone_number,3,1) = (SUBSTR(phone_number,4,1)+1)
    	)
    	OR
    	(
    	SUBSTR(phone_number,1,1) = (SUBSTR(phone_number,2,1)-1)
    	and
    	SUBSTR(phone_number,2,1) = (SUBSTR(phone_number,3,1)-1)
    	and
    	SUBSTR(phone_number,3,1) = (SUBSTR(phone_number,4,1)-1)
    	)
    )
    OR
    (
    	(
    	SUBSTR(phone_number,2,1) = (SUBSTR(phone_number,3,1)+1)
    	and
    	SUBSTR(phone_number,3,1) = (SUBSTR(phone_number,4,1)+1)
    	and
    	SUBSTR(phone_number,4,1) = (SUBSTR(phone_number,5,1)+1)
    	)
    	or
    	(
    	SUBSTR(phone_number,2,1) = (SUBSTR(phone_number,3,1)-1)
    	and
    	SUBSTR(phone_number,3,1) = (SUBSTR(phone_number,4,1)-1)
    	and
    	SUBSTR(phone_number,4,1) = (SUBSTR(phone_number,5,1)-1)
    	)
    )
    OR
    (
    	(
    	SUBSTR(phone_number,3,1) = (SUBSTR(phone_number,4,1)+1)
    	and
    	SUBSTR(phone_number,4,1) = (SUBSTR(phone_number,5,1)+1)
    	and
    	SUBSTR(phone_number,5,1) = (SUBSTR(phone_number,6,1)+1)
    	)
    	OR
    	(
    	SUBSTR(phone_number,3,1) = (SUBSTR(phone_number,4,1)-1)
    	and
    	SUBSTR(phone_number,4,1) = (SUBSTR(phone_number,5,1)-1)
    	and
    	SUBSTR(phone_number,5,1) = (SUBSTR(phone_number,6,1)-1)
    	)
    )
    OR
    (
    	(
    	SUBSTR(phone_number,4,1) = (SUBSTR(phone_number,5,1)+1)
    	and
    	SUBSTR(phone_number,5,1) = (SUBSTR(phone_number,6,1)+1)
    	AND
    	SUBSTR(phone_number,6,1) = (SUBSTR(phone_number,7,1)+1)
    	)
    	OR
    	(
    	SUBSTR(phone_number,4,1) = (SUBSTR(phone_number,5,1)-1)
    	and
    	SUBSTR(phone_number,5,1) = (SUBSTR(phone_number,6,1)-1)
    	AND
    	SUBSTR(phone_number,6,1) = (SUBSTR(phone_number,7,1)-1)
    	)
    )
    OR
    (
    	(
    	SUBSTR(phone_number,5,1) = (SUBSTR(phone_number,6,1)+1)
    	and
    	SUBSTR(phone_number,6,1) = (SUBSTR(phone_number,7,1)+1)
    	and
    	SUBSTR(phone_number,7,1) = (SUBSTR(phone_number,8,1)+1)
    	)
    	OR
    	(
    	SUBSTR(phone_number,5,1) = (SUBSTR(phone_number,6,1)-1)
    	and
    	SUBSTR(phone_number,6,1) = (SUBSTR(phone_number,7,1)-1)
    	and
    	SUBSTR(phone_number,7,1) = (SUBSTR(phone_number,8,1)-1)
    	)
    )
    OR
    (
    	(
    	SUBSTR(phone_number,6,1) = (SUBSTR(phone_number,7,1)+1)
    	and
    	SUBSTR(phone_number,7,1) = (SUBSTR(phone_number,8,1)+1)
    	and
    	SUBSTR(phone_number,8,1) = (SUBSTR(phone_number,9,1)+1)
    	)
    	OR
    	(
    	SUBSTR(phone_number,6,1) = (SUBSTR(phone_number,7,1)-1)
    	and
    	SUBSTR(phone_number,7,1) = (SUBSTR(phone_number,8,1)-1)
    	and
    	SUBSTR(phone_number,8,1) = (SUBSTR(phone_number,9,1)-1)
    	)
    )
    OR
    (
    	(
    	SUBSTR(phone_number,7,1) = (SUBSTR(phone_number,8,1)+1)
    	and
    	SUBSTR(phone_number,8,1) = (SUBSTR(phone_number,9,1)+1)
    	and
    	SUBSTR(phone_number,9,1) = (SUBSTR(phone_number,10,1)+1)
    	)
    	OR
    	(
    	SUBSTR(phone_number,7,1) = (SUBSTR(phone_number,8,1)-1)
    	and
    	SUBSTR(phone_number,8,1) = (SUBSTR(phone_number,9,1)-1)
    	and
    	SUBSTR(phone_number,9,1) = (SUBSTR(phone_number,10,1)-1)
    	)
    )
    

    在这里插入图片描述

    AAABBB

    select phone_number from `phone_number` where
    (
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,3,1)
    and
    SUBSTR(phone_number,2,1) = SUBSTR(phone_number,4,1)
    and
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,7,1)
    )
    OR
    (
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,4,1)
    and
    SUBSTR(phone_number,3,1) = SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,8,1)
    )
    OR
    (
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,5,1)
    and
    SUBSTR(phone_number,4,1) = SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,9,1)
    )
    OR
    (
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,6,1)
    and
    SUBSTR(phone_number,5,1) = SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,9,1)
    and
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,10,1)
    )
    
    

    在这里插入图片描述

    尾号规律

    AAA

    select phone_number from `phone_number` where
    (
    SUBSTR(phone_number,9,1) = SUBSTR(phone_number,10,1)
    and
    SUBSTR(phone_number,9,1) = SUBSTR(phone_number,11,1)
    )
    

    在这里插入图片描述

    ABAB

    select phone_number from `phone_number` where
    (
    SUBSTR(phone_number,8,1) != SUBSTR(phone_number,9,1)
    and
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,10,1)
    AND
    SUBSTR(phone_number,9,1) = SUBSTR(phone_number,11,1)
    )
    

    在这里插入图片描述

    AABBCC

    select phone_number from `phone_number` where
    (
    SUBSTR(phone_number,6,1) != SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,6,1) != SUBSTR(phone_number,10,1)
    and
    SUBSTR(phone_number,8,1) != SUBSTR(phone_number,10,1)
    and
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,7,1)
    AND
    SUBSTR(phone_number,8,1) = SUBSTR(phone_number,9,1)
    AND
    SUBSTR(phone_number,10,1) = SUBSTR(phone_number,11,1)
    )
    

    在这里插入图片描述

    ABCD(顺子,1234或4321)

    select phone_number from `phone_number` where
    (
    	(
    	SUBSTR(phone_number,8,1) = (SUBSTR(phone_number,9,1)+1)
    	and
    	SUBSTR(phone_number,9,1) = (SUBSTR(phone_number,10,1)+1)
    	AND
    	SUBSTR(phone_number,10,1) = (SUBSTR(phone_number,11,1)+1)
    	)
    	OR
    	(
    	SUBSTR(phone_number,8,1) = (SUBSTR(phone_number,9,1)-1)
    	and
    	SUBSTR(phone_number,9,1) = (SUBSTR(phone_number,10,1)-1)
    	AND
    	SUBSTR(phone_number,10,1) = (SUBSTR(phone_number,11,1)-1)
    	)
    )
    

    在这里插入图片描述

    AAABBB

    select phone_number from `phone_number` where
    (
    SUBSTR(phone_number,6,1) = SUBSTR(phone_number,7,1)
    and
    SUBSTR(phone_number,7,1) = SUBSTR(phone_number,8,1)
    and
    SUBSTR(phone_number,9,1) = SUBSTR(phone_number,10,1)
    and
    SUBSTR(phone_number,9,1) = SUBSTR(phone_number,11,1)
    )
    

    在这里插入图片描述

    展开全文
  • 五套人民币冠号是两个汉语拼音字母+八位数字,如果前625个全部用完了,就挪位字母如下图五版币是有关门号这么说法,但是由于价格很贵,没有见到实物,只有图片,纸币号码开头是AA00000001,而不是AA00...

    网上一直有人民币冠号印制表,版本也不少,可以确认AA开头的肯定是假的,想当然地弄出来的表。第五套人民币首发号FA是公认的,即使有时候所谓夹心冠先见到的是FB或其他,仍然不改冠号表上的逻辑顺序。

    五套人民币冠号是两个汉语拼音字母+八位数字,如果前625个全部用完了,就挪一位字母如下图

    d55719ee7a5774ac6abf12d4d47dc049.png

    五版币是有关门号这么一说法,但是由于价格很贵,没有见到实物,只有图片,纸币号码开头是AA00000001,而不是AA00000000,这样,最后一百张开头会是AA99999901,结尾就会溢出一位数字,这张就是整个号段的关门号,AA100000000,九位数字,相传是印钞厂手工打出来的。这种东西流通中自然不可能见到。

    要注意形如F8A7654321这样的号码,F8A不能直接算是一个冠号,比如A3H9999999之后的号码并不是关门号A3H10000000,而是A4H0000000,所以夹心号的本质仍然是两位字母和八位数字。

    八位数字基本上没有什么好说的,就是流水号

    95057f32185e91d7cb72a0a7377ca1ef.png

    4a9ebd9a95f580011db8ae474f390848.png

    要注意每张整版未裁切的钞票一般后四位都是一样的,只有前几位有区别,比如这张航天钞的后四位都是0100,前几位分别是30015到30049,所以理论上00000001的旁边是00010001,一直到00340001,其实他们是一张纸上一起出生的,得到的待遇是天壤之别了。

    下面重点说冠字号码,流水号特殊号是个人就能看出来,一些特别的冠号某些程度上可能比流水号更有意义,因为绝大多数银行职员内部人士未必就能看得出来,这也使得特殊冠号也能正常地参加流通,而不是像流水号成为少数人合法谋取暴利的工具。我一直拒绝收藏所谓靓号,精制流通纪念币,流通纪念币特殊包装,早期流通纪念币整卷,这类的东西多是银行内部特别流出来的,绝大多数情况下和流通二字毫无关系。

    第五套人民币冠号在大的方向上和四版有些相似,和国际上AA~ZZ不一样,人民币印制顺序看似是乱的,实际上是有规律的。

    冠号包括25个字母,英文字母除去V,这样分为三个区域,分别是前十个,中五个,后十个

    85c1635ea65b53e6be98daa88a64d55c.png

    然后这三组字母两两配对,配成九个大组

    51ed6519e13fb53ad19d6ee138b3fcab.png

    以第一大组为例,一一配对,按顺序就是下面这样,前冠看似无规律,后冠就是abcdefghij klmno pqrstuwxyz的简单顺序

    FA FB FC FD FE FF FG FI FJ

    EA…………EJ

    ……直到最后一组

    AA……AH AI AJ

    这就是100个冠号的一大组,每个大组最后几个通常是补号。

    插叙下什么是补号,也就是事先印好,查出有不合格的票券时手工放进去代替的——现在已经很少用了,现在是机器数够了100张就是一把,每一把开头也不一定是01了。

    而在过去每一捆开头必然是001,结尾是000,如果开头结尾出了问题就手工打码补上,不再使用补号。在落后的西方国家常用ZZ作为补号,英帝国主义反复无常,以前常用M01 02这样的,现在主要用LL,美帝国主义用的是星号。

    这样按照上图所示,一大组典型补号是AJ,二组UJ,三组HZ,四组XZ,以后分别是YO MZ JO MJ OO可以看出位于边缘位置的字母如J O Z都会常见一些,事实上第一大组某些券种AD AE AG AH AI AJ可能都是补号,这个就要联系实际来看,冠号表只是一个通行的规则。

    插叙下首发号的问题,由于每组号码可能安排给不同的印钞厂,比如F00F印刷日期早于F00A不是没可能,但我仍然不认同这样FF就是首发号,现代纸币印刷不像是四版那样了,那时候CP是绝对早于CQ的,现在多个印钞厂一起动工,即使日期差几天比不上冠号逻辑的重要。

    还有为啥要按照FEGDHCIBJA这样的顺序,实际上每一大组都是有规律的。

    a775104c0194a6550e7134aa0ad6459c.png
    不用多解释吧

    第二大组也是一样的

    注意第三大组ADGJCFIBEH

    就是147 10 369 258的顺序如下图

    33b4a1822dc14a4172298991f6c8f49d.png

    注意后期的我没有严格考证,可能出现错误,实际上追求早期号看前几个大组就行了,后面的谁早谁晚也没什么好争的了

    这个在第二三套人民币上不一样,那时候123到012结束了是135 246这样的。我怀疑第五套设计冠号的喜欢打麻将~

    顺便说下第三套的规则,以后不另外说第三套的规则了

    就是这样的

    123 234 345 456 567 678 789 890 901 012

    然后

    135 357 579 791 913 246 468 680 802 024

    这里还算有规律谁知道后来还是不够用了

    再然后

    124 125 126 127 128 129 130 134 136 137

    140 145 146 147 148 149 150 156…………一直这么数下去,排除掉比如141这样的重复数,142这样的和124一样,143和134一样,144同理,145就可以数,

    再进行123 132 213 231 312 321的变换

    ,一直数到790组,最后907 079 097 这样的经常就是补号

    这种三个不重复的数字用完了再用001 002这样的两个重复号码,这种号码的三冠号没有专门的补号,还是用790组合。

    又用完了仍然不会用111 000这样的,直接就把数字增加一位到八位,冠号变成两位,然后00 01 02 03这样的,直到99 98经常作为补号。

    所以逻辑还是很相似的

    但是也太复杂了~

    2018.12.24 00:50如有错讹敬请指正谢谢!//

    2019.6.24 16:00修正//

    展开全文
  • 题目要求:有行电文,按以下规律译成密码:即第1个字母变成第26个字母,第i个字母变成第(26-i+1)个字母,非字母字符不变。要求编程序将密码译回原文,并输出密码和原文 以下为具体代码: #include <stdio.h&...

    有一行电文,按以下规律译成密码(C语言)

    题目要求:有一行电文,按以下规律译成密码:即第1个字母变成第26个字母,第i个字母变成第(26-i+1)个字母,非字母字符不变。要求编程序将密码译回原文,并输出密码和原文

    以下为具体代码:

    #include <stdio.h>
    int main()
    {
        char str[20];
        gets(str);
        printf("Key: ");
        puts(str);
        int i;
        for(i=0;i<=20;i++)
        {
            if(str[i]>='A' && str[i]<='Z')
                str[i]=65+90-str[i];
            if(str[i]>='a' && str[i]<='z')
                str[i]=97+122-str[i];
        }
        printf("Text: ");
        puts(str);
        return 0;
    }
    
    展开全文
  • 北京电话号码规律

    千次阅读 2009-11-16 09:30:00
    先看第位,8、6开头的为网通电话 5开头为铁通 再看第2位下边说的都是网通电话了,铁通还没细分 2345678为城8区的电话,0、1、9的为郊区电话 62、82头的大多集中在北京城的西北方向。在海淀区或西城区 63、83头的...
  • 密码(规律题)

    2018-03-28 09:58:24
    其中第个密码就是牛客网的密码。 牛客网专注于程序员的学习、成长及职位发展,连接C端程序员及B端招聘方,通过IT笔试面试题库、在线社区、在线课程等提高候选人的求职效率,通过在线笔试、面试及其他工具提...
  • 这是款整理发布的企业核心团队成长和演变的密码与规律,适用于深入调查研究、把握本质现象,...该文档为企业核心团队成长和演变的密码与规律,是份很不错的参考资料,具有较高参考价值,感兴趣的可以下载看看
  • 关于格雷规律、转换

    千次阅读 2020-02-20 13:08:09
    任意两个相邻的代码只有位二进制数不同。并且首尾相连,属于循环(这里我发现百度有说不是的,特此注明)。 镜像排列规律: 如果要画卡诺图,镜像格雷是必须的。生成二进制格雷方式2的n次方位元的格雷可以...
  • 行电文,已按下面规律译成密码: A-->Z a--->z B--->Y b--->y ... 即第个字母变成第26个字母,第i个字母变成第(26-i+1)个字母。非字母字符不变。要求编程序将密码译回原文,并输出密码和...
  • 格雷典型的二进制格雷简称格雷,因1953年公开的弗兰克·格雷专利“Pulse Code ...1941年George Stibitz设计的种8元二进制机械计数器正好符合格雷计数器的计数规律。格雷(Gray code)曾用过Grey ...
  • 格雷典型的二进制格雷简称格雷,因1953年公开的弗兰克·格雷专利...1941年GeorgeStibitz设计的种8元二进制机械计数器正好符合格雷计数器的计数规律。格雷(Graycode)曾用过GreyCode、...
  • 行电文,已按下面规律译成密码

    万次阅读 多人点赞 2015-06-28 11:41:44
    行电文,已按下面规律译成密码: A →Z B→Y C→X …… a→z b→y c→x …… 即第个字母变成第26个字母,第i个字母变成第(26-i+1)个字母,非字母字符不变。 要求编程序将密码译回原文,并输出密码和...
  • ASCII 规律技巧

    2011-10-05 16:22:00
    ,首先要观察一下ASCII 的内在规律。 (1)此表的构造为16行8列。 (2)整张表可以分为两部分:靠近左侧的3列为不常用的,右侧4列为常用的。 (3)英文字母本身只有26个,因此需要在两列展示。 二,对于...
  • 如果用个值给他们做排名,可以发现个格雷的值是从高位开始间隔性+,-变化2^(i)-1。 #include<bits/stdc++.h> using namespace std; typedef long long ll; char a[105],b[105]; int...
  • 7.12 有行电文,已按下面规律译成密码…… #include//7.12 有行电文,已按下面规律译成密码…… char changeDaXie(char c) { //printf("change()接收到的%c\n",c); int i; i=c-64; c=90-(i-1); //...
  • 个电文,包含26个字母和非字母字符,按规律将其译成密码 A-Z a-z B-Y b-y C-X c-x
  • C程序设计 (第四版) 谭浩强 习题3.6 个人设计习题 3.6 请编程序将”China”译成密码,密码...请编程序,用赋初值的方法使c1, c2, c3, c4, c5这5个变量的值分别为’C’, ‘h’, ‘i’, ‘n’, ‘a’, 经过运算,使
  • 要将"China"译成密码,密码规律是: 用原来...请编写程序,用赋初值的方法使c1,c2,c3,c4,c5这5个变量的值分别为'C','h','i','n','a',经过运算,使c1,c2,c3,c4,c5 分别变为'G', 'l', 'm', 'r', 'e',并输出。
  • 字母按上述规律转换,非字母字符不变。输入行字符,输出相应密码。 //36.按一定规律将电文变成密码:将字母A变为E.将字母a变为e即变成其后的第四个字母,W将变成A //字母按上述规律转换,非字母字符不变.输入行字符...
  • C++程序设计(第三版) 谭浩强 习题2.8 个人设计习题 2.8 将“China”译成密码,密码规律...请编写程序,用赋初值的方法使c1, c2, c3, c4, c5 5个变量的值分别为’C’, ‘h’, ‘i’, ‘n’, ‘a’,经过运算,使c1,
  • #include<stdio.h> int main() { char string[20]; int i; gets(string); puts(string); for (i=0;i<20;i++) { if (string[i]>='a'&&... string[i]=27-(string[i]-9...
  • 请编程序,用赋初值的方法使cl,c2,c3,c4.c5 这5个变量的值分别为’C’,‘h’,4’,‘n’,‘a’ ,经过运算,使cl,c2,c3,c4,c5分别变为’G’,‘l’,‘m’,‘r’,‘e’。分别用putchar函数和printf函数输出这5个字符。 ...
  • 只可爱的兔子被困在了密室了,密室里有两个数字,还有行字: 只有解开密码,才能够出去。 可爱的兔子摸索了好久,发现密室里的两个数字是表示的是个区间[L,R] 而密码是这个区间中任意选择两个(可以相同的)...
  • strings查看字符串,好像还真得到个有用的串: 这个串挺长的,{}的位置正确,凯撒、栅栏就别想了,能不能从串本身找到规律? 仔细观察,发现前面部分的大写字母拼起来正好是ALEXCTF,而且每个字母之间隔了4个...
  • 1081: [SCOI2005]超级格雷Time Limit: 10 Sec Memory Limit: 162 MBSubmit: 639 Solved: 372[Submit][Status][Discuss]Description 著名的格雷是指2n个不同n位二进制数(即0~2n-1,不足n位在前补零)的个...
  • [img=https://img-bbs.csdn.net/upload/201612/21/1482301528_296412.jpg][/img] [img=... C代码: char str[3] = "我"; ... printf("%d %d", (unsigned char)str[0], (unsigned char)str[1]);... }
  • 例如,可以将以下规律将电文变成密码:将字母A变成字母E,a变成e,即变成其后的第4个字母,W变成A,X变成B,Y变成C,Z变成D。字母按上述规律转换,非字母字符保持原状不变,如“China!”变成“Glmre!”。从键盘输入...
  • 他们的密码是串整数,通过一张表里的信息映射成最终4位密码。表的规则是:n对应的值是矩阵X的n次方的左上角,如果这个数不足4位则用0填充,如果大于4位的则只输出最后4位。 |1 1|^n => |Xn …| |1 0| |… …| ...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 1,890
精华内容 756
关键字:

一码规律