fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int a;
  5. scanf("%d",&a);
  6. if(a%4==0)
  7. {
  8. if(a%100==0)
  9. {
  10.  
  11. if(a%400==0)
  12. {
  13. printf("うるう年です");
  14. }
  15. }
  16. else{
  17. printf("うるう年ではありません");
  18. }
  19. }
  20.  
  21. else
  22. {
  23. printf("うるう年ではありません");
  24. }
  25.  
  26. return 0;}
Success #stdin #stdout 0s 5312KB
stdin
500
stdout
Standard output is empty