摘要: 题意:在字符串中的pos位置插入字符串,询问pos位置的字母是谁思路:裸的块状数组,第一次写,“借鉴”了别人的,比我自己yy的短多了。。。自己yy的又长又臭,效率还低,就给出别人的吧。。PS:真心觉得块状数组是个好东西。。。View Code 1 #include <cstdio> 2 #include <cmath> 3 #include <cstring> 4 #include <cstdlib> 5 #include <algorithm> 6 #include <iostream> 7 8 #define N 50 阅读全文
posted @ 2012-10-09 00:49 proverbs 阅读(1124) 评论(0) 推荐(0) 编辑