TouchStone
  Please Login
Login Sign Up
距离CSP第一轮: ??天 距离CSP第二轮: ??天 距离NOIP还有: ??天
 Homepage  Problem Set  Examinations  Submissions  Discussions  Statistics
  • Home
  • Problem Set
  • P3300
  • Problem
  • P3300【2015重庆省队训练赛Round7】蜂巢扩散(提交答案)
    Limits : Time Limit : 10000 MS   Memory Limit : 262144 KB
    Description


    Input Format
    Output Format


    Sample Input

    样例输入1:
    5 5
    ryyrb
    bbyry
    ggbgr
    gygy#
    #rgrS

    样例输入2:
    8 10
    Syggyrbygg
    rryyggrryy
    bb######rr
    yy######br
    gr######rg
    by######yr
    gbgyggyyyy
    rrgrggyrgr

    Sample Output

    样例输出1:
    8
    rgbgrybr

    样例输出2:
    15
    rygrybrygrygrybgry

    Hint

    /

    /