fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a, b, c, byte;
  5.  
  6. a = b = c = 0xa0;
  7.  
  8. while ((byte = getchar()) != EOF)
  9. {
  10. a ^= byte;
  11. b ^= a | c / 0x55;
  12. c = b ^ 0x94;
  13. }
  14.  
  15. printf("%02x%02x%02x\n", a, b, c);
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 2252KB
stdin
a
stdout
c161f5