Test.md

  • Update on 2024.6.1.@M1__.
  • 这是一个测试文件,用来测试 cnlogs 和本地 markdown 的配置是否正确。

标题

一级标题

二级标题

三级标题

四级标题

五级标题
六级标题

内嵌 \(\LaTeX\)

\(1+1=2\)\(a^m+a^n=a^{m+n}\)

\[\boxed{x ={-b \pm \sqrt{b^2-4ac}\over 2a}} \]

\[\int \frac{1}{\sqrt{1-x^{2}}}\mathrm{d}x= \arcsin x +C \]

\[\frac{1}{n^{2}-1}= \frac{1}{2}\left( \frac{1}{n-1}-\frac{1}{n+1}\right) \]

\[+ \ - \ \times \ \cdot \ {\div} \ \frac{a}{b} \ \pm \ \le \ \vee \ \neq \ \wedge \ \oplus \ \bigtriangleup \ \gets \ \alpha \ \beta \ \gamma \ \Delta \ \Theta \ \Lambda \ \Pi \ \Sigma \ \Omega \ \]

\[\begin{array}{l} \nabla \cdot \mathbf{E} =\cfrac{\rho}{\varepsilon _0} \\ \nabla \cdot \mathbf{B} = 0 \\ \nabla \times \mathbf{E} = -\cfrac{\partial \mathbf{B}}{\partial t } \\ \nabla \times \mathbf{B} = \mu _0\mathbf{J} + \mu _0\varepsilon_0 \cfrac{\partial \mathbf{E}}{\partial t } \end{array} \]

\( \begin{cases} \sin(2k\pi + \alpha) = \sin\alpha \\ \cos(2k\pi + \alpha) = \cos\alpha \\ \tan(2k\pi + \alpha) = \tan\alpha \\ \\ \sin(-\alpha) = -\sin\alpha \\ \cos(-\alpha) = \cos\alpha \\ \tan(-\alpha) = -\tan\alpha \end{cases} \quad k \in \mathbb{Z} \begin{cases} \sin(2k\pi + \alpha) = \sin\alpha \\ \cos(2k\pi + \alpha) = \cos\alpha \\ \tan(2k\pi + \alpha) = \tan\alpha \\ \\ \sin(-\alpha) = -\sin\alpha \\ \cos(-\alpha) = \cos\alpha \\ \tan(-\alpha) = -\tan\alpha \end{cases} \quad k \in \mathbb{Z} \begin{cases} \sin\left(\dfrac{\pi}{2} + \alpha\right) = \cos\alpha \\ \sin\left(\dfrac{\pi}{2} - \alpha\right) = \cos\alpha \\ \\ \cos\left(\dfrac{\pi}{2} + \alpha\right) = -\sin\alpha \\ \cos\left(\dfrac{\pi}{2} - \alpha\right) = \sin\alpha \\ \\ \tan\left(\dfrac{\pi}{2} + \alpha\right) = -\cot\alpha \\ \tan\left(\dfrac{\pi}{2} - \alpha\right) = \cot\alpha \end{cases} \begin{cases} \sin\left(\dfrac{3\pi}{2} + \alpha\right) = -\cos\alpha \\ \sin\left(\dfrac{3\pi}{2} - \alpha\right) = -\cos\alpha \\ \\ \cos\left(\dfrac{3\pi}{2} + \alpha\right) = \sin\alpha \\ \cos\left(\dfrac{3\pi}{2} - \alpha\right) = -\sin\alpha \\ \\ \tan\left(\dfrac{3\pi}{2} + \alpha\right) = -\cot\alpha \\ \tan\left(\dfrac{3\pi}{2} - \alpha\right) = \cot\alpha \end{cases} \)

\[\def\arraystretch{1.5}\begin{array}{c|c}\hline {n \le } & 10^1 & 10^2 & 10^3 & 10^4 & 10^5 & 10^6 & 10^7 & 10^8\cr\hline {{max\{ \omega (n)\}}} & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 8 \cr\hline {{max\{ d (n)\}}} & 4 & 12 & 32 & 64 & 128 & 240 & 448 & 768 \cr\hline {n \le } & 10^{10} & 10^{11} & 10^{12} & 10^{13} & 10^{14} & 10^{15} & 10^{16} & 10^{17}\cr\hline {{max\{ \omega (n)\}}} & 10 & 10 & 11 & 12 & 12 & 13 & 13 & 14 \cr\hline {{max\{ d (n)\}}} & 2304 & 4032 & 6720 & 10752 & 17280 & 26880 & 41472 & 64512 \cr\hline \end{array} \]

列表

  • 1st
    • Ⅰ.
    • Ⅱ.
    • Ⅲ.
  • 2nd
  • 3rd

表格

阶段 年代 电子元件 运算速度(每秒/次)
第一代 \(1946-1958\) 真空电子管 数千至数万
第二代 \(1958-1964\) 晶体管 几十万至几百万
第三代 \(1964-1970\) 中小规模集成电路 百万至几百万
第四代 \(1970-2024\) (超)大规模集成电路 几百万至千亿
\(n \leq\) \(10^1\) \(10^2\) \(10^3\) \(10^4\) \(10^5\) \(10^6\) \(10^7\) \(10^8\) \(10^9\) \(10^{10}\) \(10^{11}\) \(10^{12}\) \(10^{13}\) \(10^{14}\) \(10^{15}\) \(10^{16}\) \(10^{17}\) \(10^{18}\)
\(\max\{\omega(n)\}\) \(2\) \(3\) \(4\) \(5\) \(6\) \(7\) \(8\) \(8\) \(9\) \(10\) \(10\) \(11\) \(12\) \(12\) \(13\) \(13\) \(14\) \(15\)
\(\max\{d(n)\}\) \(4\) \(12\) \(32\) \(64\) \(128\) \(240\) \(448\) \(768\) \(1344\) \(2304\) \(4032\) \(6720\) \(10752\) \(17280\) \(26880\) \(41472\) \(64512\) \(103680\)

链接和图片

行内式链接标题
http://www.luogu.org/

插入图片

代码块

small codes

//large codes
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n,m;
ll l,r;
int main(){
	cin>>n>>m;
	cout<<(n+1)/2<<endl;
	for(int i=1;i<=m;i++){
		cin>>l>>r;
	}
	for(int i=1;i<=n/2;++i){
		cout<<i<<" "<<i+n/2<<endl;
	}
	if(n%2!=0){
		cout<<1<<" "<<n<<endl;
	}
	return 0;
}
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner scanner = new Scanner(System.in)) {
            String s=scanner.next();
            int xb=0,a=0,b=0,c=0;
            char op=' ';
            for(;xb<s.length()&&s.charAt(xb)>='0'&&s.charAt(xb)<='9';xb++) a=a*10+(s.charAt(xb)-'0');
            if(xb==0) {
                xb++;
                op=s.charAt(xb);
                xb++;
                for(;xb<s.length()&&s.charAt(xb)>='0'&&s.charAt(xb)<='9';xb++) b=b*10+(s.charAt(xb)-'0');
                xb++;
                for(;xb<s.length()&&s.charAt(xb)>='0'&&s.charAt(xb)<='9';xb++) c=c*10+(s.charAt(xb)-'0');
                if(op=='+') System.out.println(c-b);
                else if(op=='-') System.out.println(b+ c);
                else if(op=='*') System.out.println(c/b);
                else System.out.println(b*c);
            } 
            else if (s.charAt(xb)=='?'){
                xb++;
                for(;xb<s.length()&&s.charAt(xb)>='0'&&s.charAt(xb)<='9';xb++) b=b*10+(s.charAt(xb)-'0');
                xb++;
                for(;xb<s.length()&&s.charAt(xb)>='0'&&s.charAt(xb)<='9';xb++) c=c*10+(s.charAt(xb)-'0');
                if(a+b==c) System.out.println('+');
                else if(a-b==c) System.out.println('-');
                else if(a*b==c) System.out.println('*');
                else System.out.println('/');
            } 
            else if(xb+1<s.length()&&s.charAt(xb+1)=='?'){
                op=s.charAt(xb);
                xb=xb+3;
                for(;xb<s.length()&&s.charAt(xb)>='0'&&s.charAt(xb)<='9';xb++) c=c*10+(s.charAt(xb)-'0');
                if(op=='+') System.out.println(c-a);
                else if(op=='*') System.out.println(c/a);
                else if(op=='-') System.out.println(a-c);
                else System.out.println(a/c);
            } 
            else{
                op=s.charAt(xb);
                xb++;
                for(;xb<s.length()&&s.charAt(xb)>='0'&&s.charAt(xb)<='9';xb++) b=b*10+(s.charAt(xb)-'0');
                if(op=='+') System.out.println(a+b);
                else if(op=='*') System.out.println(a*b);
                else if(op=='-') System.out.println(a-b);
                else System.out.println(a/b);
            }
        }
    }
}

引用

引用文字

我见青山多妩媚,料青山见我应如是。

To be or not to be,this is a qustion.

\(To \ be\ or \ not \ to \ be,\ this \ is \ a \ qustion.\)

字体支持

Markdown内置

  • 海浪抚平了我的心灵 。The waves smoothed my soul.
  • 海浪抚平了我的心灵。 The waves smoothed my soul.
  • 海浪抚平了我的心灵。 The waves smoothed my soul.
  • 海浪抚平了我的心灵。 The waves smoothed my soul.
  • 海浪抚平了我的心灵。 The waves smoothed my soul.
  • 海浪抚平了我的心灵。 The waves smoothed my soul.
  • 海浪抚平了我的心灵。 The waves smoothed my soul.

大段文字测试:
The last thing Harry saw before the hat dropped over his eyes was the hall full of people craning to get a good look at him. Next second he was looking at the black inside of the hat. He waited.

"Hmm," said a small voice in his ear. "Difficult. Very difficult. Plenty of courage, I see. Not a bad mind either. There's talent, oh my goodness, yes – and a nice thirst to prove yourself, now that's interesting... So where shall I put you?"

Harry gripped the edges of the stool and thought, Not Slytherin, not Slytherin.

"Not Slytherin, eh?" said the little voice. "Are you sure? You could be great, you know, it's all here in your head, and Slytherin will help you on the way to greatness, no doubt about that – no? Well, if you're sure – better be GRYFFINDOR!"

Harry heard the hat shout the last word to the whole hall. He took off the hat and walked shakily towards the Gryffindor table. He was so relieved to have been chosen and not put in Slytherin, he hardly noticed that he was getting the loudest cheer yet.

十五年前的一个下午,我摇着轮椅进入园中,它为一个失魂落魄的人把一切都准备好了。那时,太阳循着亘古不变的路途正越来越大,也越红。在满园弥漫的沉静光芒中,一个人更容易看到时间,并看见自己的身影。

自从那个下午我无意中进了这园子,就再没长久地离开过它。我一下子就理解了它的意图。正如我在一篇小说中所说的:“在人口密聚的城市里,有这样一个宁静的去处,像是上帝的苦心安排。”

两条腿残废后的最初几年,我找不到工作,找不到去路,忽然间几乎什么都找不到了,我就摇了轮椅总是到它那儿去,仅为着那儿是可以逃避一个世界的另一个世界。我在那篇小说中写道:“没处可去我便一天到晚耗在这园子里。跟上班下班一样,别人去上班我就摇了轮椅到这儿来。”“园墙在金晃晃的空气中斜切下一溜荫凉,我把轮椅开进去,把椅背放倒,坐着或是躺着,看书或者想事……蜂儿如一朵小雾稳稳地停在半空;蚂蚁摇头晃脑捋着触须,猛然间想透了什么,转身疾行而去;瓢虫爬得不耐烦了,累了祈祷一回便支开翅膀,忽悠一下升空了;树干上留着一只蝉蜕,寂寞如一间空屋;露水在草叶上滚动,聚集,压弯了草叶轰然坠地摔开万道金光。”

园子荒芜但并不衰败。

\(\LaTeX\) 内置字体

\(\mathrm{The \ waves \ smoothed \ my \ soul}\) 罗马体 (用于数学常量)

\(\mathit{The \ waves \ smoothed \ my \ soul}\) 斜体 (变量默认样式)

\(\mathbf{The \ waves \ smoothed \ my \ soul}\) 粗体 (向量/矩阵)

\(\mathsf{The \ waves \ smoothed \ my \ soul}\) 无衬线体

\(\mathtt{The \ waves \ smoothed \ my \ soul}\) 等宽体 (代码表示)

\(\mathcal{The \ waves \ smoothed \ my \ soul}\) 花体 (仅大写字母)

\(\mathbb{The \ waves \ smoothed \ my \ soul}\) 黑板粗体 (数集符号 ℝℂℕ)

\(\mathfrak{The \ waves \ smoothed \ my \ soul}\) 哥特体 (李代数常用)

\(\mathscr{The \ waves \ smoothed \ my \ soul}\) 手写体 (需 \mathscr 支持)

\(\textrm{The \ waves \ smoothed \ my \ soul}\) 文本罗马体

\(\textit{The \ waves \ smoothed \ my \ soul}\) 文本斜体

\(\textsf{The \ waves \ smoothed \ my \ soul}\) 文本无衬线

\(\texttt{The \ waves \ smoothed \ my \ soul}\) 文本等宽

\(\boldsymbol{The \ waves \ smoothed \ my \ soul}\) 希腊字母粗体 (向量)

\(\pmb{The \ waves \ smoothed \ my \ soul}\) 伪粗体 (多重渲染)

\(\mathcal{The \ waves \ smoothed \ my \ soul}\) 拉普拉斯变换符号

\(\mathbb{The \ waves \ smoothed \ my \ soul}\) 期望运算符

可渲染至 HTML (洛谷不行)

海浪抚平了我的心灵。

海浪抚平了我的心灵。

海浪抚平了我的心灵。

十五年前的一个下午,我摇着轮椅进入园中,它为一个失魂落魄的人把一切都准备好了。那时,太阳循着亘古不变的路途正越来越大,也越红。在满园弥漫的沉静光芒中,一个人更容易看到时间,并看见自己的身影。

自从那个下午我无意中进了这园子,就再没长久地离开过它。我一下子就理解了它的意图。正如我在一篇小说中所说的:“在人口密聚的城市里,有这样一个宁静的去处,像是上帝的苦心安排。”

两条腿残废后的最初几年,我找不到工作,找不到去路,忽然间几乎什么都找不到了,我就摇了轮椅总是到它那儿去,仅为着那儿是可以逃避一个世界的另一个世界。我在那篇小说中写道:“没处可去我便一天到晚耗在这园子里。跟上班下班一样,别人去上班我就摇了轮椅到这儿来。”“园墙在金晃晃的空气中斜切下一溜荫凉,我把轮椅开进去,把椅背放倒,坐着或是躺着,看书或者想事……蜂儿如一朵小雾稳稳地停在半空;蚂蚁摇头晃脑捋着触须,猛然间想透了什么,转身疾行而去;瓢虫爬得不耐烦了,累了祈祷一回便支开翅膀,忽悠一下升空了;树干上留着一只蝉蜕,寂寞如一间空屋;露水在草叶上滚动,聚集,压弯了草叶轰然坠地摔开万道金光。”

园子荒芜但并不衰败。

这里是 Times New Roman 字体

The last thing Harry saw before the hat dropped over his eyes was the hall full of people craning to get a good look at him. Next second he was looking at the black inside of the hat. He waited. "Hmm," said a small voice in his ear. "Difficult. Very difficult. Plenty of courage, I see. Not a bad mind either. There's talent, oh my goodness, yes – and a nice thirst to prove yourself, now that's interesting... So where shall I put you?" Harry gripped the edges of the stool and thought, Not Slytherin, not Slytherin. "Not Slytherin, eh?" said the little voice. "Are you sure? You could be great, you know, it's all here in your head, and Slytherin will help you on the way to greatness, no doubt about that – no? Well, if you're sure – better be GRYFFINDOR!" Harry heard the hat shout the last word to the whole hall. He took off the hat and walked shakily towards the Gryffindor table. He was so relieved to have been chosen and not put in Slytherin, he hardly noticed that he was getting the loudest cheer yet.

posted @ 2025-06-01 11:33  M1_Byte  阅读(31)  评论(0)    收藏  举报