fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int count;
  6. char *p = (char *)&count;
  7. char mask = 194;
  8.  
  9. if (scanf("%d", &count) != 1) {
  10. printf("Input error");
  11. return 0;
  12. }
  13.  
  14. for (int i = 0; i < sizeof(int); i++) {
  15. *p = *p & ~mask;
  16. p++;
  17. }
  18.  
  19. printf("%d", count);
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0.01s 5320KB
stdin
125
stdout
61