#include #include using namespace std; string ciphertext = "\305\310\217\364\1\136\212\121\23\310\356" "\153\23\364\347\77\10\356\376\364\23\136\45\364\62\1\356\121\175\136" "\62\45\175\45\310\212\45\332\356\77\212\364\23\310\273\356\217\364" "\1\136\212\23\356\77\1\77\212\45\175\77\356\371\364\45\356\23\310\45" "\356\23\160\356\212\6\45\356\160\45\153\356\212\6\121\310\273\77\356" "\212\6\371\212\356\1\23\325\356\217\371\310\356\364\45\62\1\356\23" "\310\10\356\165\310\160\23\364\212\325\310\371\212\45\62\1\162\356" "\45\310\332\136\23\121\310\212\356\77\45\217\325\364\121\212\1\356" "\121\77\356\77\23\356\212\45\364\364\121\160\121\217\371\62\62\1\356" "\153\45\371\347\356\212\6\371\212\356\150\337\231\356\217\371\310\356" "\160\364\45\251\325\45\310\212\62\1\356\160\121\310\332\356\153\371" "\1\77\356\371\364\23\325\310\332\356\121\212\10\356\275\356\305\332" "\153\371\364\332\356\337\310\23\153\332\45\310"; // Your code goes here... // // A C++ warning: chars in C++ are *signed* integers, and when dealing with // non-ASCII characters as in the ciphertext above, some values may be // negative, which will throw off your calculations if you aren't careful. // If you cast to an unsigned char, for example (unsigned char)ciphertext[0], // then everything should work OK. // // If you didn't understand this warning, it's probably best that you don't // use C++... :-)