fork download
  1.  
  2. #include <stdio.h>
  3.  
  4. int main(void)
  5. {
  6. int n;
  7. scanf("%d", &n);
  8.  
  9. if ((n%3==0 && n%7==0 && n%13!=0 && n%19!=0) ||
  10. (n%3==0 && n%13==0 && n%7!=0 && n%19!=0) ||
  11. (n%3==0 && n%19==0 && n%7!=0 && n%13!=0) ||
  12. (n%7==0 && n%13==0 && n%3!=0 && n%19!=0) ||
  13. (n%7==0 && n%19==0 && n%3!=0 && n%13!=0) ||
  14. (n%13==0 && n%19==0 && n%3!=0 && n%7!=0))
  15. {
  16. printf("1");
  17. }
  18. else
  19. {
  20. printf("0");
  21. }
  22.  
  23. return 0;
  24. }
  25.  
  26.  
Success #stdin #stdout 0s 5316KB
stdin
273
stdout
Standard output is empty