#Lutece3380. Yet Another Sum Problem
Yet Another Sum Problem
Description
Given an integer array whose length is and an integer array whose length is . Calculate
Input
The first line contains two integers ().
The second line contains integers ().
The third line contains integers ().
It's guaranteed that and .
Output
Output one integer indicating the answer. Please output the answer modulo .
Samples
Resources
The 22nd UESTC Programming Contest Preliminary