#include <iostream>
using namespace std;
int main()
{
int res = 6, n = 1;
for (int i = 0; i < 22; i++)
{
n *= 20;
n %= 7;
}
cout << (res + n - 1) % 7 + 1;
return 0;
}res 存结果,当前为周六,n 存 20^22 的值
n乘22次20,每次模7
最后打印当前是周几
1 回复
0 转发
0 喜欢
5 阅读



