#include <bits/stdc++.h>
using namespace std;
unordered_map<string, bool> UsedIP, UsedName;
unordered_map<string, string> NameIPMap;
unordered_map<string, string> IPNameMap;
string IntTo4String(int a) {
string re = "0000";
int i = 1;
while (a != 0) {
re[4 - i] = a % 10 + 48;
a /= 10;
i++;
}
return re;
}
int StringToInt(string s) {
int re;
re = 1000 * (s[0] - 48) + 100 * (s[1] - 48) + 10 * (s[2] - 48) + (s[3] - 48);
return re;
}
class Passage {
public:
string originMsg;
string version;
string sourceIP, targetIP;
string statusCode;
string statusVersion;
string dataLengthString;
int dataL
山东大学程序思维设计与实践模测 猫猫协议 代码
于 2024-03-31 12:28:12 首次发布