树
非线性
树只能有一个前驱
度:一个结点的子树个数
叶子节点:度数为 0的节点
层次,深度:指层数
路径:自上而下
二叉树
1.满二叉树
每个节点度数为2( 除了叶子节点)
节点数:2^k-1
2.完全二叉树
出倒数第一层以外,其余是满二叉树
倒数第一层从左往右依次排列,不能跳跃
性质1:
第k层最多2^(k-1)个节点
性质2:
k层共有2^k-1个节点
性质3:
叶子节点数量(n0)=度数为2的节点数(n2)+1 (对于任意二叉树)
性质4:
完全二叉树:
叶子节点数量=节点数-节点数/2 图
有向图:有明确的方向
完全图:任意两个顶点之间都有一条边
完全有向图边数:n(n-1)
有向图的度:入度 出度 看箭头指向
路径:简单路径:除了起点和终点外其余点不相同
环,回路:路径的起点和终点相同
有向图中,顶点i和顶点j有路径,则称顶点i到顶点j是连通的
有向图中,任意两点连通,则该图为强连通图
途中每个点到另一个点可以有一个对应的距离或者花费的代价,称为权
边上带权的图称为带权图或者网
无向图:没有明确的方向
完全图:任意两个顶点之间都有一条边
完全无向图边数:n(n-1)/2
无向图的度:顶点具有边的数量
路径:简单路径:除了起点和终点外其余点不相同
环,回路:路径的起点和终点相同
无向图中,顶点i和顶点j有路径,则称顶点i和顶点j是连通的
无向图中,任意两点连通,则该图为连通图
途中每个点到另一个点可以有一个对应的距离或者花费的代价,称为权
边上带权的图称为带权图或者网
图的储存:邻接矩阵
a[i][j]=1表示有一条直接从i到j的边
a[i][j]=0表示没有一条直接从i到j的边
#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
void movexy(short x, short y){
COORD position={x, y};
HANDLE hOut=GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hOut, position);
}
int main(){
movexy(37, 7);
cout<<"反电子教室系统"<<endl;
cout<<endl; cout<<" 目前可以反击:"<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED);
cout<<" 红蜘蛛多媒体网络教室 - 输入 k-rs即可反击"<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 11);
cout<<" 极域电子教室 - 输入 k-jy即可反击"<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 12);
cout<<" 伽卡他卡电子教室 - 输入 k-yk即可反击"<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7);
cout<<" 如果在开启本程序后关闭本程序,"<<endl;
cout<<" 本次反击将无效!"<<endl;
cout<<" input >>> ";
string s;
cin>>s;
if(s=="k-rs"){
system("cls");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED);
cout<<" 红蜘蛛反击系统启动成功"<<endl;
Sleep(1000);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7);
while(1) {
system("taskkill /f /t /im REDAgent.exe");
system("cls");
}
}
if(s=="k-jy"){
system("cls");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 11);
cout<<" 极域反击系统启动成功"<<endl;
Sleep(1000);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7);
while(1) {
system("taskkill /f /t /im StudentMain.exe");
system("cls");
}
}
if(s=="k-yk"){
system("cls");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 12);
cout<<" 伽卡他卡反击系统启动成功"<<endl;
Sleep(1000);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7);
while(1){
system("taskkill /f /t /im Student.exe");
system("cls");
}
}
return 0;
} #include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
using namespace std;
char in;
void as(){
system("title 极域使用助手 v.1.1.0");
system("cls");
}
void wl(){
system("cls");
cout<<"此功能仅对 [V6.0 2017 豪华版] 有效\n\n";
cout<<"其他版本需搭配 [卸载极域] 使用\n\n";
cout<<"\n请按任意键继续\n\n";
getch();
system("cls");
system("sc stop TDFileFilter");
system("sc stop TDNetFilter");
system("taskkill /f /t /im GATESRV.exe");
system("taskkill /f /t /im MasterHelper.exe");
cout<<"\n任务已完成,按任意键继续\n\n";
getch();
}
void ou(){
system("cls");
system("taskkill /f /t /im StudentMain.exe");
cout<<"\n任务已完成,按任意键继续\n\n";
getch();
}
void un(){
system("cls");
cout<<"卸载后将无法还原,确定卸载吗 ( 0 / 1 )\n\n";
if(getch()=='1'){
system("\"C:\\Program Files\\Mythware\\极域课堂管理系统软件V6.0 2017 豪华版\\unins000.exe\" /silent");
system("\"C:\\Program Files\\Mythware\\e-Learning Class\\uninst\\unins000.exe\" /silent");
}
cout<<"\n任务已完成,按任意键继续\n\n";
getch();
}
void da(){
system("cls");
cout<<"qihangxing开发\n\n";
cout<<"2025 04 06 v.1.0.0 完成基本的4个功能\n\n";
cout<<"2025 04 07 v.1.1.0 适配 [V6.0 2017 豪华版] \n\n";
cout<<"\n任务已完成,按任意键继续\n\n";
getch();
}
void ho(){
system("cls");
cout<<"极域使用助手 v.1.1.0\n\n";
cout<<"1.解锁网络 2.退出极域\n\n";
cout<<"3.卸载极域 4.更新日志\n\n";
in=getch();
}
void xy(){
system("cls");
cout<<"[程序使用协议]\n\n";
cout<<"本程序仅供 [测试,娱乐] 使用\n\n";
cout<<"因使用本程序造成的后果由使用者个人承担\n\n";
cout<<"\n请按任意键继续\n\n";
getch();
}
void sm(){
system("cls");
cout<<"欢迎来到 极域使用助手 v.1.1.0 \n\n\n";
cout<<"使用程序视为同意 [程序使用协议] \n\n";
cout<<"按 1 查看协议 按其他键继续 \n\n";
if(getch()=='1')
xy();
}
int main(){
sm();
while(1){
as();
ho();
if(in=='1')
wl();
else if(in=='2')
ou();
else if(in=='3')
un();
else if(in=='4')
da();
}
return 0;
}https://www.luogu.com.cn/paste/hyns0rto
https://www.luogu.com.cn/paste/m5zsr1w5
- 《安达与岛村》(樱与抱月)
- 《少女乐队的呐喊》(Girls Band Cry / GBC)
- 《我怎么可能成为你的恋人,不行不行!(※不是不可能!?)》
- 《Lycoris Recoil 莉可丽丝》
- 《败给了性格恶劣的天才青梅,初体验全部被夺走这件事》(轻小说,暂无动画)
- 《终将成为你》(やがて君になる)
- 《BanG Dream! It’s MyGO!!!!!》
- 《孤独摇滚!》
- 《上伊那牡丹,酒醉身姿似百合花般》
- 《魔女之旅》
- 《BanG Dream! Ave Mujica》
- 《超时空辉夜姬!》
- 《与你相恋到生命尽头》
- 正在查找……










