fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int a1,i,n,ans;
  6. int count=0;
  7. for(i=0;i<=63;i++)
  8. {
  9. a1=i;
  10. for(n=2;n<10;n++)
  11. {
  12. ans=(2*a1)%64;
  13. if(ans==0)
  14. {
  15. printf("%d : %d\n",i,n);
  16. if(n==6)
  17. {
  18. count=count+1;
  19. }
  20. }
  21. break;
  22. printf("%d",count);
  23. }
  24. }
  25. // your code goes here
  26. return 0;
  27. }
  28.  
Success #stdin #stdout 0s 4336KB
stdin
Standard input is empty
stdout
0 : 2
32 : 2