2012年2月29日
摘要: 其他人写的分析:Slyar:题意理解起来比较难,看了10几分钟才明白...大意就是把字符串按字母分成3组,[a-i]一组,[j-r]一组,[s-z]以及其他字符一组,然后给出了3个整数表示每组内的轮换间隔,让你在各组内分别旋转...哎,自己多看看就明白了。理解了题意这题就没什么难度了,继续练习STL,这次使用了vector,很爽。我的代码注释很详细,算法我就不说了。# include <iostream># include <vector># include <string>using namespace std;int main(){ int k1, k2 阅读全文
posted @ 2012-02-29 14:45 万里心晴 阅读(250) 评论(0) 推荐(0) 编辑