![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
acm水题
nothing is worse
long long ago,there is nothing
展开
-
hdu 字符串水题 hdu1073Online Judge 和 hdu1200To and Fro hdu1321Reverse Text
hdu1073Online Judge#include using namespace std;#define N 256#define M 5010char source[M];char dist[M];int m_hash[N];int main(){ int i, n, t; char tmpstr[N]; while(scanf("%d",原创 2013-09-30 21:59:37 · 910 阅读 · 0 评论 -
hdu1210Eddy's 洗牌问题 和 hdu 1209 Ignatius and the Princess IV 和hdu 1273漫步森林
hdu1210Eddy's 洗牌问题//求交叉换位循环最后和原串相同的次数#include #include #include using namespace std;int main(){int n, i,j,k;int maxN, num;while(scanf("%d", &n) != EOF){ n *= 2;i =原创 2013-09-10 22:59:43 · 766 阅读 · 0 评论 -
hdu2816I Love You Too
#include #include using namespace std;#define NSIZ 1010char str[NSIZ];char source[27] = {"QWERTYUIOPASDFGHJKLZXCVBNM"};char target[27] = {"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};typedef st原创 2013-08-31 23:07:49 · 485 阅读 · 0 评论 -
hdu1708Fibonacci String
#include using namespace std;#define NSIZ 40char str1[NSIZ];char str2[NSIZ];int num[27];int num_n_1[27];int num_n_2[27];int main(){int t, i, n1, n2, j,k;scanf("%d", &t);原创 2013-08-31 23:06:21 · 475 阅读 · 0 评论 -
hdu 4544 叛逆的小明 -- 数字反转 和 hdu 2074 叠筐(水题)
水题:数字的反转,123变成321, 复数时前导0去掉 比如-100变成-1#include using namespace std;#define N 10000int Reverse(int inNum){ int sum = 0; if (inNum < 10) { return inNum; } while(inNum%10 == 0) inNum /=原创 2013-10-07 23:14:18 · 628 阅读 · 0 评论