#include <iostream> using namespace std; int main() { unsigned char a, b; scanf("%c", &b); cout<<b<<" "; while (scanf("%c", &a)) { if (a == '\n') break; printf("%x ", a^b); b=a; } return 0; }
pack my box with five dozen liquor jugs
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