delete pics to save space
This commit is contained in:
17
history_source/信息学奥赛一本通/1.4.1.25.cpp
Normal file
17
history_source/信息学奥赛一本通/1.4.1.25.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include<iostream>
|
||||
#include<vector>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
string days[]={"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"};
|
||||
int a,b;
|
||||
cin>>a>>b;
|
||||
int x=a;
|
||||
for(int i=1;i<b;i++)
|
||||
{
|
||||
a=a*x;
|
||||
a=a%7;
|
||||
}
|
||||
cout<<days[a]<<endl;
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user