Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #define x first
- #define y second
- using namespace std;
- typedef pair <int, int> Coord;
- class Action
- {
- public:
- Coord c;
- int act;
- };
- class Client
- {
- public:
- Coord from, to;
- int order_time;
- int my_driver = -1;
- void Scan()
- {
- cin >> t >> from.x >> from.y >> to.x >> to.y;
- }
- };
- class Driver
- {
- public:
- vector <Action> seq;
- Coord pos;
- int time;
- int free_space = 1;
- };
- void zero_action()
- {
- }
- void move_action(vector <Driver> &drivers, vector <Client> &clients, Coord dim, int timer)
- {
- for (auto &driver : drivers)
- {
- }
- }
- void make_action(vector <Driver> &drivers, vector <Client> &clients, Coord dim, int timer)
- {
- move_action(drivers, clients, dim, timer);
- }
- int main()
- {
- Coord dim;
- cin >> dim.x >> dim.y;
- int k;
- cin >> k;
- vector <Driver> drivers(k);
- for (auto &driver: drivers)
- {
- cin >> driver.cur.x >> driver.cur.y;
- }
- Client client;
- vector <Client> clients;
- int timer = 0;
- make_action(drivers, clients, dim, timer);
- client.Scan();
- while (client.t != -1)
- {
- timer = client.t;
- clients.push_back(client);
- make_action(drivers, clients, dim, timer);
- client.Scan();
- }
- zero_action();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement