# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
974972 | n3rm1n | Robots (IOI13_robots) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "robots.h"
#include "robots.cpp"
#define MAX_A 50000
#define MAX_B 50000
#define MAX_T 500000
using namespace std;
int X[MAX_A];
int Y[MAX_B];
int W[MAX_T];
int S[MAX_T];
int main() {
int A, B, T, i;
int res;
cin >> A >> B >> T;
for (i = 0; i < A; i++) {
cin >> X[i];
}
for (i = 0; i < B; i++) {
cin >> Y[i];
}
for (i = 0; i < T; i++) {
cin >> W[i] >> S[i];
}
int answer = putaway(A, B, T, X, Y, W, S);
cout << answer << endl;
return 0;
}
/***
3 2 10
6 2 9
4 7
4 6
8 5
2 3
7 9
1 8
5 1
3 3
8 7
7 6
10 5
2 0 2
15 15
7 8
5 6
2 0 2
20 1
10 10
10 10
*/