C++算法
晨子衿
Java网站设计;c++算法;
展开
-
codeup墓地目录
代码内容为原创C++ 在线codeup contest 地址:http://codeup.cn/contest.php Contest100000575 - 《算法笔记》3.1小节——入门模拟->简单模拟1814 Problem A 剩下的树1817 Problem B A+B1906 Problem C 特殊乘法2036 Problem D 比较奇偶数个数6116 Pro...原创 2018-08-26 11:56:40 · 4227 阅读 · 2 评论 -
PAT乙级 (Basic Level) Practice 刷题目录
点击链接查看代码,内容为原创C++。 PAT乙级目录:https://pintia.cn/problem-sets/994805260223102976/problems 标号 标题 分数 通过数 提交数 通过率 1001 害死人不偿命的(3n+1)猜想 15 21954 60556 0.36 ...原创 2019-01-22 17:05:47 · 359 阅读 · 0 评论 -
计算机网络——IP数据报转发算法
#include<iostream> #include<vector> #include<string> #include<algorithm> using namespace std; string ipDatagram;//ip数据报 int Destination[4];//目的地址 struct Network {//网络 int add...原创 2019-09-12 16:47:28 · 730 阅读 · 1 评论 -
计算机网络——RIP协议距离向量算法
#include<iostream> #include<ctime> #include<algorithm> using namespace std; bool Rout[12]; struct Net { int d, nextR; Net() {//构造函数:初始距离为17不存在,且没有下一跳 d = 17; nextR = -1; } }; ...原创 2019-09-12 16:48:25 · 1632 阅读 · 0 评论 -
计算机网络——透明网桥算法
#include<iostream> #include<algorithm> #include<vector> #include<map> #include<string> using namespace std; const int MAXN = 105; const int INF = 1e9; struct Bridge { s...原创 2019-09-12 16:50:47 · 2036 阅读 · 0 评论 -
计算机网络——TCP拥塞控制算法
#include<iostream> #include<ctime> #include<windows.h> using namespace std; const int RTT = 1; int ssthresh = 20; //门限初始值 int mild, severt; //轻度、重度拥塞时窗口大小 int TranRound(int cwnd){ ...原创 2019-09-12 16:52:41 · 293 阅读 · 0 评论