#include<stdio.h>
/*1000-2000之间的闰年*/int main(){ int year,point; for(year=1000;year<=2000;year++) { if(year%4==0) { if(year%100==0) { if(year%400==0) point=1; else point=0; } else point=1; } else point=0; if(point==1) printf("%d ",year); }return 0;
}