TEST $1+1=2$ 2222222222

一生疏狂尽余欢,半剖肝胆入剑寒。 剑至高危如蜀道,生逢穷途行路难。

一生疏狂尽余欢,半剖肝胆入剑寒。 剑至高危如蜀道,生逢穷途行路难。

一生疏狂尽余欢,半剖肝胆入剑寒。 剑至高危如蜀道,生逢穷途行路难。

一生疏狂尽余欢,半剖肝胆入剑寒。 剑至高危如蜀道,生逢穷途行路难。

print("Hello World")
print("Hello World")
print("Hello World")

这是示例 这是示例的侧边注解

这是示例 这是示例的侧边注解

这是示例 这是示例的侧边注解

这是示例 这是示例的侧边注解

这是示例 这是示例的侧边注解

这是示例 这是示例的侧边注解

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

标题(用底线的形式

This is an H1

This is an H2

字符效果和横线等


删除线 删除线(开启识别HTML标签时) 斜体字 斜体字 粗体 粗体 粗斜体 粗斜体

上标:X2,下标:O2 (不行)

$x^2$ $x_2$

引用 Blockquotes

引用文本 Blockquotes

引用的行内混合 Blockquotes

引用:如果想要插入空白换行即<br />标签,在插入处先键入两个以上的空格然后回车即可,普通链接

普通链接

普通链接带标题

直接链接:https://github.com

https://baidu.com

锚点链接

mailto:test.test@gmail.com

GFM a-tail link @pandao 邮箱地址自动链接 test.test@gmail.com www@vip.qq.com

@pandao

多语言代码高亮 Codes

行内代码 Inline code

执行命令:npm install marked

图片 Images

Image:

Follow your heart.

图为:厦门白城沙滩

图片加链接 (Image + Link):

图为:李健首张专辑《似水流年》封面


列表 Lists

无序列表(减号)Unordered Lists (-)

  • 列表一
  • 列表二
  • 列表三

无序列表(星号)Unordered Lists (*)

  • 列表一
  • 列表二
  • 列表三

无序列表(加号和嵌套)Unordered Lists (+)

  • 列表一
  • 列表二
    • 列表二-1
    • 列表二-2
    • 列表二-3
  • 列表三
    • 列表一
    • 列表二
    • 列表三

有序列表 Ordered Lists (-)

  1. 第一行
  2. 第二行
  3. 第三行

GFM task list

  • GFM task list 1
  • GFM task list 2
  • GFM task list 3
    • GFM task list 3-1
    • GFM task list 3-2
    • GFM task list 3-3
  • GFM task list 4
    • GFM task list 4-1
    • GFM task list 4-2

绘制表格 Tables

项目价格数量
计算机$16005
手机$1212
管线$1234
First HeaderSecond Header
Content CellContent Cell
Content CellContent Cell
First HeaderSecond Header
Content CellContent Cell
Content CellContent Cell
Function nameDescription
help()Display the help window.
destroy()Destroy your computer!
Left-AlignedCenter AlignedRight Aligned
col 3 issome wordy text$1600
col 2 iscentered$12
zebra stripesare neat$1
ItemValue
Computer$1600
Phone$12
Pipe$1

特殊符号 HTML Entities Codes

© & ¨ ™ ¡ £ & < > ¥ € ® ± ¶ § ¦ ¯ « ·

X² Y³ ¾ ¼ × ÷ »

18ºC " '

[========]

Emoji表情 😃

Blockquotes ⭐

GFM task lists & Emoji & fontAwesome icon emoji & editormd logo emoji :editormd-logo-5x:

  • 😃 @mentions, 😃 #refs, links, formatting, and tags supported :editormd-logo:;
  • list syntax required (any unordered or ordered list supported) :editormd-logo-3x:;
  • [ ] 😃 this is a complete item 😃;
  • []this is an incomplete item test link :fa-star: @pandao;
  • [ ]this is an incomplete item :fa-star: :fa-gear:;
    • 😃 this is an incomplete item test link :fa-star: :fa-gear:;
    • 😃 this is :fa-star: :fa-gear: an incomplete item test link;

反斜杠 Escape

*literal asterisks*

[========]

科学公式 TeX(KaTeX)

$$E=mc^2$$

行内的公式$$E=mc^2$$行内的公式,行内的$$E=mc^2$$公式。

$$x > y$$

$$ \sqrt{3x - 1} + (1 + x)^2 $$

$$\sin(\alpha)^{\theta}=\sum_{i=0}^{n}(x^i + \cos(f))$$

分页符 Page break

Print Test: Ctrl + P

#include<stdio.h>
#include<string.h>
#include <ctype.h>
#include<stdlib.h>
int type(const char *str) {
    const char *p = str;

    if (*p == '\0') {
        return 0;
    }

    if (strncmp(p, "0x", 2) == 0 || strncmp(p, "0X", 2) == 0) {
        p += 2;

        if (*p == '\0') {
            return 0; // 只有 0x/0X 是非法的
        }

        while (*p) {
            if (!isxdigit(*p)) {
                return 0; // 包含非十六进制字符
            }
            p++;
        }

        return 2; // 合法十六进制
    }
    while (*p) {
        if (!isdigit(*p)) {
            return 0;
        }
        p++;
    }

    return 1;
}

long long dec_2_num(const char *str){
		char *endptr;
		return strtoll(str, &endptr, 10);
}
long long hex_2_num(const char *str){
		char *endptr;                                              
		return strtoll(str, &endptr, 16);         
}


int main(int argc,char *argv[]){
	if(argc != 3){
		printf("ERROR\n");
		return 0;
	}

	const char *input1 = argv[1];
	const char *input2 = argv[2];

	if (strlen(input1)>15 ||strlen(input2)>15 ){
		printf("ERROR\n");        
        return 0;  
	}

	if(!(type(input1)&&type(input2))){
		printf("ERROR\n");
                return 0;
	}
	
	long long num1,num2;
	if(type(input1)==1){
		num1=dec_2_num(input1);
	}else if(type(input1)==2){
		num1=hex_2_num(input1);
	}else{
		printf("ERROR\n");
                return 0;
	}
	if(type(input2)==1){
                num2=dec_2_num(input2);
        }else if(type(input2)==2){
                num2=hex_2_num(input2);
        }else{                             
                printf("ERROR\n");
                return 0;
        }

	printf("0x%llX %lld\n",num1+num2,num1+num2);
	return 0;
}