#include<iostream>
using namespace std;
struct date
{
	int year;
	int month;
	int day;
};
int key(int a,int b,int c)
{
	int months[12]={31,28,31,30,31,30,31,31,30,31,30,31},days=0;
	for(int i=0;i<b-1;i++)
	days+=months[i];
	if(b<=2)
	return(days+c);
	else
	{
	if(a%400==0)
	return(days+c+1);
	else if(a%100!=0&&a%4==0)
	return(days+c+1);
	else
	return(days+c);
    }
}
int main()
{
	date m;
	cin>>m.year>>m.month>>m.day;
	cout<<key(m.year,m.month,m.day);
	return 0;
}

声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。