#include<iostream> using namespace std; struct time { int year , month , date; }a; int jug ( int year ) { if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) return 1; else return 0; }; int main ( ) { cin >> a.year >> a.month >> a.date; int flag = jug ( a.year ); int res = 0; switch (a.month) { case 1:res = 0 + a.date ; break; case 2:res = 31 + a.date;break; //1 +31 case 3:res = 59 + a.date + flag;break; //2 case 4:res = 90 + a.date + flag;break; //3 case 5:res = 120 + a.date + flag;break; //4 case 6:res = 151 + a.date + flag;break; //5 case 7:res = 181 + a.date + flag;break; //6 case 8:res = 212 + a.date + flag;break; //7 case 9:res = 243 + a.date + flag;break; //8 case 10:res = 273 + a.date + flag;break; //9 case 11:res = 304 + a.date + flag;break; //10 case 12:res = 334 + a.date + flag;break; //11 } cout << res; return 0; }
0.0分
0 人评分