https://www.myziyuan.com/
- 123qwe
- #include <stdio.h> #define MAX 100 #define leap(y) (y%4==0 && y%100!=0 || y%400==0) struct d{int y,m,d;}; long days(struct d d1,struct d d2) { int mon[2][13]= {{0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,29,31,30,31,30,31,31,30,31,30,31}}; int i; long td=0; for(i=d1.y;i<d2.y;i++) td+=leap(i)?366:365; for(i=1;i<d1.m;i++) td-=mon[leap(d1.y)][i]; td-=d1.d-1; for(i=1;i<d2.m;i++) td+=mon[leap(d2.y)][i]; td+=d2.d-1; return td; } int main() { struct d now[MAX],start={1990,1,1}; int n,i,day; scanf("%d",&n); for(i=0;i<n;++i) { scanf("%d%d%d",&now[i].y,&now[i].m,&now[i].d); } for(i=0;i<n;++i) { day=days(start,now[i]); if(day%5<3) printf("He was fishing on %d %d %d\n",now[i].y,now[i].m,now[i].d); else printf("He was basking on %d %d %d\n",now[i].y,now[i].m,now[i].d); } return 0; }
- 2021-02-19 18:20:01
- 尖叫的奶牛
- 最好不要用这种东西
- 2021-02-11 16:24:30
- H5支付系统
- 制作钓鱼网站需要什么钓鱼源码怎么弄,www.77169.com www.hackzd.cn 这两个网站找教程,里面一般会把教程中所用的工具一起打包。
- 2021-02-11 16:24:30