标签:io os sp bs amp nbsp c ios algorithm
#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<algorithm>
#include<cstdlib>
#include<cmath>
using namespace std;
int y,m,d;
int main()
{
while(scanf("%d%d%d",&y,&m,&d)!=EOF)
{
if(m<3)
y-=1,m+=12;
printf("%d",(d+2*m+3*(m+1)/5+y+y/4-y/100+y/400+1)%7);
}
return 0;
}
标签:io os sp bs amp nbsp c ios algorithm
原文地址:http://www.cnblogs.com/a972290869/p/4101142.html