7481: BZOJ3481: DZY Loves Math III
Memory Limit:64 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
输入格式
输出格式
样例输入
3 1 2 3 2 4 2
样例输出
6
提示
1<=N<=10,0<=Qi<=10^18,1<=Pi<=10^18,P>=2
本题仅四组数据。
题目来源
By Jc