# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
39325 | 14kg | Robots (IOI13_robots) | C++11 | 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 <stdio.h>
#include <stdlib.h>
#include "robots.h"
#define MAX_A 50000
#define MAX_B 50000
#define MAX_T 500000
static int X[MAX_A];
static int Y[MAX_B];
static int W[MAX_T];
static int S[MAX_T];
int main() {
int A, B, T, i;
FILE *f = fopen("sample1.in", "r");
fscanf(f, "%d", &A);
fscanf(f, "%d", &B);
fscanf(f, "%d", &T);
for (i = 0; i < A; i++) fscanf(f, "%d", &X[i]);
for (i = 0; i < B; i++) fscanf(f, "%d", &Y[i]);
for (i = 0; i < T; i++) fscanf(f, "%d%d", &W[i], &S[i]);
int answer = putaway(A, B, T, X, Y, W, S);
printf("%d\n", answer);
return 0;
}