MENU

Markdown编辑器效果测试

2018 年 04 月 13 日 • 阅读: 2352 • 笔迹阅读设置

test(一级)

test(二级)

test(三级)

test(四级)

test(五级)
test(六级)

test(加粗)

test(删除线)

test(倾斜)


test(引用)
test
test

  • test(无序列表)
  • test
  • test

  1. test(有序列表)
  2. test
  3. test

超链接:传送门


图片:


表格:

太傅太傅太傅
太傅太傅太傅
太傅太傅太傅

html实体字符

@ || © ® || ♥ || ♠


表情


HTML语法标签解析测试

字体颜色

文字加粗

文字居中

下划线


Latex公式

$$E=mc^2$$

$$c = \pm\sqrt{a^2 + b^2}$$

$$ f(x) = \int_{-\infty}^\infty \hat f(\xi)\,e^{2 \pi i \xi x} \,d\xi $$


行内代码 test test test test


// C++代码
#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int maxn = 1010;
int Next[maxn];

void GetNext(string P)
{
    int p_len = P.size();
    int i = 0;   
    int j = -1;  
    Next[0] = -1;

    while (i < p_len)
    {
        if (j == -1 || P[i] == P[j])
        {
            i++;
            j++;
            Next[i] = j;
        }
        else
            j = Next[j];
    }
}


int main()
{
    string P;
    while (cin >> P)
    {
        int l = P.length();
        GetNext(P);
        for (int i = 0; i < l; ++i)
            cout << Next[i] << " ";
        cout << endl;
    }
    return 0;
}

The end.
2018-04-13 星期五
最后编辑于: 2018 年 04 月 17 日
添加新评论

已有 3 条评论
  1. 测试评论@(太开心)

  2. sad sad

    博客真好看

    1. @sad谢谢哈@(笑眼)