![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
printf("%d",Abs(get(Y,M,D)-get(y,m,d))); int get(int y,int m,int d){ if(m<3){ --y; m+=12; } return 365*y+y/4 - y/100+y/400+(153*m - 457)/5+d - 306; }
printf("%d",Abs(get(Y,M,D)-get(y,m,d))); int get(int y,int m,int d){ if(m<3){ --y; m+=12; } return 365*y+y/4 - y/100+y/400+(153*m - 457)/5+d - 306; }
转载于:https://www.cnblogs.com/zhang1107/p/3452445.html