fork(6) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. unsigned char a, b;
  6. scanf("%c", &b);
  7. cout<<b<<" ";
  8. while (scanf("%c", &a)) {
  9. if (a == '\n') break;
  10. printf("%x ", a^b);
  11. b=a;
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 4496KB
stdin
pack my box with five dozen liquor jugs
stdout
p 11 2 8 4b 4d 14 59 42 d 17 58 57 1e 1d 1c 48 46 f 1f 13 45 44 b 15 1f b 4e 4c 5 18 4 1a 1d 52 4a 1f 12 14