提交时间:2024-10-25 14:38:46
运行 ID: 53754
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; int day = 1; for (int i = 1; i <= b; i++) { day *= a; } a = a%7-1; if(a == 1){ cout << "Monday"; } if(a == 2){ cout << "Tuesday"; } if(a == 3){ cout << "Wednesday"; } if(a == 4){ cout << "Thursday"; } if(a == 5){ cout << "Friday"; }if(a == 6){ cout << "Saturday"; }if(a == 0){ cout << "Sunday"; } }