题解 | #吉祥日#
吉祥日
https://ac.nowcoder.com/acm/contest/33341/A
我说怎么这么多人AK,原来是2027 11 30还没到啊!
https://ac.nowcoder.com/acm/contest/view-submission?submissionId=52151492
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long M,N,P,k;
cin>>M>>N>>P;
k=(M-2000)*12+N+1;
while(k%7!=4&&k%7!=0)
{
k++;
}
M=k/12+2000;
N=k%12;
P=1;
cout<<M<<' '<<N<<' '<<P;
return 0;
}
// 2027 11 30 try it and and see what's up
强烈要求rejudge!
https://ac.nowcoder.com/acm/contest/view-submission?submissionId=52151492
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long M,N,P,k;
cin>>M>>N>>P;
k=(M-2000)*12+N+1;
while(k%7!=4&&k%7!=0)
{
k++;
}
M=k/12+2000;
N=k%12;
P=1;
cout<<M<<' '<<N<<' '<<P;
return 0;
}
// 2027 11 30 try it and and see what's up
强烈要求rejudge!