提交时间:2023-12-02 18:54:59

运行 ID: 32740

#include<iostream> #include<cmath> using namespace std; int main() { int a,b; cin>>a>>b; a=a%7; b=b%6; int c=pow(a,b); int d=c%7; if(d==1) cout<<"Monday"; else if(d==2) cout<<"Tuesday"; else if(d==3) cout<<"Wendnesday"; else if(d==4) cout<<"Thursday"; else if(d==5) cout<<"Friday"; else if(d==6) cout<<"Saturday"; else cout<<"Sunday"; return 0; }