中级光能
2
#include<iostream>
#include<cstdio>
#include<string>
#include<cmath>
#include<iomanip>
#include<algorithm>
#include<cstdlib>
#include<queue>
#include<cstring>
using namespace std;
long long m,n;
int main(){
cin>>n>>m;
m%=24;
n+=m;
n%=24;
cout<<n;
return 0;
}
中级光能
1
#include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
if(a%4==0){
cout<<1;
}else if(a%4==1){
cout<<7;
}else if(a%4==2){
cout<<9;
}else{
cout<<3;
}
return 0;
}
中级光能
3
#include<iostream>
#include<cstdio>
#include<string>
#include<cmath>
#include<iomanip>
#include<algorithm>
#include<cstdlib>
#include<queue>
#include<cstring>
using namespace std;
long long a,x;
string sum[15]={"Sun","Mon","Tue","Wed","Thu","Fri","Sat"};
int main(){
cin>>a>>x;
a+=x;
a%=7;
cout<<sum[a];
return 0;
}