fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int a;
  6. scanf("%d",&a);
  7.  
  8. if((a%2==0&&!a%100==0)||a%400==0){
  9.  
  10. printf("閏年です");
  11. }else{
  12. printf("閏年ではない");
  13. }
  14.  
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5284KB
stdin
1700
stdout
閏年です