fork(6) download
  1. #include <iostream>
  2.  
  3. int main() {
  4. unsigned char x1, x2;
  5. scanf("%c", &x1);
  6. x1 = ~x1;
  7. printf("%x ", x1);
  8. while (scanf("%c", &x2)) {
  9. if (x2 == '\n') break;
  10. x2 = x1 ^ x2;
  11. printf("%x ", x2);
  12. x1 = x2;
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 16064KB
stdin
What a nice day!
stdout
a8 c0 a1 d5 f5 94 b4 da b3 d0 b5 95 f1 90 e9 c8