前言
早打算用Markdown写博客了,但已经给博客做了TinyMCE的自定义css,要重做,于是一直拖到现在 咕咕咕
爆肝了一晚上让博客的css兼容了markdown编辑器
自己调代码高亮的感觉真好:p
这篇博客就当测试用吧
测试
A
B
C
D
E
F
Mul
DoubleMul
TripleMul
DoubleWave
(sum _{d|n} varphi (d) = n)
[gcd(a,b) = gcd(b,a \% b)
]
- Eggs
- Tomatos
- Flandre
- Elephant
- Cooler
- Zoo
- 1-1
- 2-1
- 2-2
Table | Bleta |
---|---|
A1 | B1 |
A2 | B2 |
A3 | B3 |
Ahhhhhhhhhhhhhhhh
e-h
int main(){return 0;}//one line code
//multi line code
#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<algorithm>
using namespace std;
int lowbit(int val){
return val&(-val);
}
struct BIT{
int size;
int data[500005];
int tree[500005];
void init(int mysize){
size=mysize;
for(int i=0;i<=mysize;i++){
tree[i]=0;data[i]=0;
}
}
void change(int id,int val){
data[id]+=val;
for(int i=id;i<=size;i+=lowbit(i)){
tree[i]+=val;
}
}
int getsum(int id){
if(id==0){
return 0;
}
int ans=0;
for(int i=id;i>=1;i-=lowbit(i)){
ans+=tree[i];
}
return ans;
}
int ask(int l,int r){
return getsum(r)-getsum(l-1);
}
}bit;
int main(){
int a[10]={0,10,9,2,5,9,6};
bit.init(10);
for(int i=1;i<=6;i++){
bit.change(i,a[i]);
}
int b[10];
b[1]=bit.ask(1,2);
b[2]=bit.ask(4,5);
b[3]=bit.ask(4,6);
b[4]=bit.ask(3,4);
int offset=0;
for(int i=1;i<=4;i++){
offset+=b[i]+1;
}
offset++;
for(int i=1;i<=4;i++){
cout<<char(b[i]+offset);
}
for(int i=2;i<=3;i++){
cout<<char(b[i]+offset);
}
return 0;
}
cnblogs do not support flow