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