Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <vector>
- #include <string>
- #include <math.h>
- #include <algorithm>
- #include <map>
- #include <set>
- #include <functional>
- #include <unordered_map>
- #define sz(x) ((int64)x.size())
- #define all(x) (x).begin(), (x).end()
- #define pb(x) push_back(x)
- #define mp(x, y) make_pair(x, y)
- typedef long long int64;
- using namespace std;
- int Rows;
- int Columns;
- int D;
- int T;
- int Load;
- int P;
- vector<int> Weight;
- struct Drone {
- int X;
- int Y;
- vector<int> Products = vector<int>(P, 0);
- };
- using Warehouse = Drone;
- using Order = Drone;
- int W;
- vector<Warehouse> Warehouses;
- int C;
- vector<Order> Orders;
- int main() {
- freopen("input.txt", "rt", stdin);
- freopen("output.txt", "wt", stdout);
- cin >> Rows >> Columns >> D >> T >> Load;
- cin >> P;
- Weight.assign(P, 0);
- for (int i = 0; i < P; ++i) cin >> Weight[i];
- cin >> W;
- for (int i = 0; i < W; ++i) {
- Warehouse warehouse;
- cin >> warehouse.X >> warehouse.Y;
- for (int j = 0; j < P; ++i) cin >> warehouse.Products[j];
- Warehouses.pb(warehouse);
- }
- cin >> C;
- for (int i = 0; i < C; ++i) {
- Order order;
- cin >> order.X >> order.Y;
- int L;
- cin >> L;
- for (int j = 0; j < L; ++j) {
- int product;
- cin >> product;
- ++order.Products[product];
- }
- Orders.pb(order);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement