2013年11月13日

POJ2159 Ancient Cipher

摘要: 题目很抽象,没有说明按哪种规则Substitution cipher,即A->? ~ Z->?并未说明,没有指明permutation cipher使用的数组,即怎么换序也不知道。确定的事:字母变换过程虽然未指明,但同一个字母肯定对应同一其他字母;学习内容:c++的I/O流;STL中的sort 对给定区间所有元素进行排序 ;#include //悲剧的WA#include //包含一组基础算法:置换、排序、合并、搜索等using namespace std;int main(){ const int maxlength = 100; //少于100个字母 char plate[.. 阅读全文

posted @ 2013-11-13 14:15 Lingc· 阅读(190) 评论(0) 推荐(0) 编辑

导航

不知道不知道 知道不知道 知道知道 不知道知道。
天道酬勤,同志们共同努力!