Help ramu problem doubt

do we have to use array in this question.

@RULEREMPIRES,
The third line contains n integers ai (0 ≀ ai ≀ 1000) β€” the number of times Ramu is going to use the rickshaw number i.
The fourth line contains m integers bi (0 ≀ bi ≀ 1000) β€” the number of times Ramu is going to use the cab number i.
You need array to store these values. You don’t need an array to compute the final answer.