==== 소감 ==== 2005/02/19 Accepted 0:00.006 64 암호화 방법이라. 재밌는 문제. 꼼꼼히 따져주기만 하면 되는 문제. ==== 코드 ==== {{{~cpp // no850 - Crypt Kicker2 #include #include #include #include using namespace std; /* 평문공격법 "the quick brown fox jumps over the lazy dog" 43자 빈도수 4, 3, 2, 2, 2, 2, 1, ... */ const int MAX_LEN = 81; const int PROPER_LEN = 43; bool input(string & s, char * rul); bool isreplace(char * str); void findRule(char * str, char * rul); void decoding(string & s, char * rul); inline void output(string & s) { cout << s; } int main() { int nCase; cin >> nCase; cin.get(), cin.get(); char rule[26]; int i; for (i=0; i