1. //
    2. // Created by qqq白 on 2022/4/25.
    3. //
    4. #ifndef C___2021_3_H
    5. #define C___2021_3_H
    6. #include "vector"
    7. int m, n, s;
    8. class Server {
    9. int id;
    10. int weight;
    11. int times;
    12. Server *next;
    13. public:
    14. Server(int ID, int Weight);
    15. int getID();
    16. void setWeight(int Weight);
    17. bool respond(std::string request);
    18. Server *getNext();
    19. void setNext(Server *Next);
    20. };
    21. std::vector<Server*> servers;
    22. #endif //C___2021_3_H