#Lutece3033. 简单算数
简单算数
Migrated from Lutece 3033 简单算数
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
maco喜欢计算和式
答案对 取模
这是什么签到题?快速幂?
哦,原来 的范围是 ,而且时限300ms,那没事了。
Input
输入两个正整数 ,
Output
输出答案
Samples
7 2
140
7 10
353815700
Constraints
Note
注:时限300ms是因为lutece测评机速度极快,绝对没有卡常的意思。
Resources
2023 UESTC ICPC Training for Math