F=ma
w=Fs
e=mc²
n=c/v
∴mawenma=F³tmc³=#fcfcfc™≈滚木*™=0
treap
#include<bits/stdc++.h>
using namespace std;
const int N=100010;
struct Node {
int l,r;
int val,rnd,siz;
} tr[N];
int root,tot;
void pushup(int u) {
tr[u].siz=tr[tr[u].l].siz+tr[tr[u].r].siz+1;
}
int newnode(int v) {
tr[++tot].val=v;
tr[tot].rnd=rand();
tr[tot].siz=1;
tr[tot].l=tr[tot].r=0;
return tot;
}
void split(int u,int v,int &x,int &y) {
if(!u){x=y=0;return;}
if(tr[u].val<=v){
x=u;
split(tr[u].r,v,tr[u].r,y);
pushup(x);
} else {
y=u;
split(tr[u].l,v,x,tr[u].l);
pushup(y);
}
}
int merge(int x,int y) {
if (!x||!y) return x+y;
if (tr[x].rnd<tr[y].rnd) {
tr[x].r=merge(tr[x].r,y);
pushup(x);
return x;
} else {
tr[y].l=merge(x,tr[y].l);
pushup(y);
return y;
}
}
void ins(int v) {
int x,y;
split(root,v,x,y);
root=merge(merge(x, newnode(v)),y);
}
void del(int v) {
int x,y,z;
split(root,v,x,y);
split(x,v-1,x,z);
z=merge(tr[z].l,tr[z].r);
root=merge(merge(x,z),y);
}
void delanything(int v) {
int x,y,z;
split(root,v,x,y);
split(x,v-1,x,z);
root=merge(x,y);
}
int getrank(int v) {
int x,y;
split(root,v-1,x,y);
int res=tr[x].siz+1;
root=merge(x,y);
return res;
}
int getkth(int k) {
int u=root;
while (u) {
if (tr[tr[u].l].siz+1==k) return tr[u].val;
else if (tr[tr[u].l].siz>=k) u=tr[u].l;
else k-=tr[tr[u].l].siz+1, u=tr[u].r;
}
return -1;
}
int pre(int v) {
int x,y;
split(root,v-1,x,y);
int u=x;
while (tr[u].r)u=tr[u].r;
int res=tr[u].val;
root=merge(x,y);
return res;
}
int nxt(int v) {
int x,y;
split(root,v,x,y);
int u=y;
while (tr[u].l) u=tr[u].l;
int res=tr[u].val;
root=merge(x,y);
return res;
}
int main() {
srand((unsigned)time(0));
int n;
cin>>n;
while (n--) {
}
return 0;
}
按Esc退出
#include <windows.h>
#include <cstdio>
int main() {
HWND hwnd = GetConsoleWindow();
SetWindowLong(hwnd, GWL_STYLE, WS_POPUP | WS_VISIBLE);
ShowWindow(hwnd, SW_MAXIMIZE);
system("color 4F");
system("cls");
printf("\n\n\n");
printf(" ########################################\n");
printf(" # #\n");
printf(" # 你 的 文 件 已 被 加 密 #\n");
printf(" # #\n");
printf(" ########################################\n\n\n");
printf(" 所有文件已被加密!\n");
printf(" 请在 72 小时内支付 100 比特币到以下地址:\n\n");
printf(" 1A2b3C4d5E6f7G8h9I0jK1lM2nO3pQ4r5S\n\n");
printf(" 逾期将永久删除密钥!逾期将永久删除密钥!逾期将永久删除密钥!逾期将永久删除密钥!\n\n");
printf(" 逾期将永久删除密钥!逾期将永久删除密钥!逾期将永久删除密钥!逾期将永久删除密钥!\n\n");
printf(" 逾期将永久删除密钥!逾期将永久删除密钥!逾期将永久删除密钥!逾期将永久删除密钥!\n\n");
while (!(GetAsyncKeyState(VK_ESCAPE) & 0x8000)) Sleep(50);
SetWindowLong(hwnd, GWL_STYLE, WS_OVERLAPPEDWINDOW | WS_VISIBLE);
ShowWindow(hwnd, SW_RESTORE);
system("color 07");
system("cls");
return 0;
}
Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
' 将下面的网址替换为你想要打开的网站
WshShell.Run "https://www.bilibili.com/video/BV1Vz4y1n7NY?t=0.3"
Set WshShell = Nothing
https://zshebjtzs.github.io/tree-grow-game/