fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int x;
  5. scanf("%d",&x);
  6. if (((x%4==0)||(x%400==0))&&!(x%100==0))
  7. printf("うるう年ですね\n");
  8. else
  9. printf("うるう年ではないですね\n");
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5320KB
stdin
2000
stdout
うるう年ではないですね