#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;
//20^22数据过于大,用循环来做
int main()
{
int a=20,b=22,c=1;
for(int i=1;i<=b;i++) //b次循环每次乘a
{
c*=a; //存储每次a的值再取模
c%=7;
}
cout<<c+6<<endl; //加上一开始的星期六
return 0;
}
0 回复
0 转发
0 喜欢
3 阅读



