摘要:
#include #include char firstSingle(char *str){ int hash[255]={0}; for(int i = 0 ;str[i];i++) { hash[str[i]]++; } for(int i = 0; str[i];i++) { if(h... 阅读全文
posted @ 2015-04-19 16:42
TobeFrank
阅读(191)
评论(0)
推荐(0)
摘要:
水题,原来以为用dp数组 结果wrong了两次 我想还是自己小题大做了···呵呵··献给初学者作为参考#include #include #define MAX 200int getCommonStrLength(char * pFirstStr, char * pSecondStr){ int m... 阅读全文
posted @ 2015-04-19 13:35
TobeFrank
阅读(297)
评论(0)
推荐(0)
摘要:
练手,献给初学者#include #include int main(void){ char string[200]={'\0'}; scanf("%s",string); for(int i = strlen(string)-1;i >= 0 ;i --) { printf("%c",stri... 阅读全文
posted @ 2015-04-19 09:13
TobeFrank
阅读(139)
评论(0)
推荐(0)
摘要:
练手而已#include #include int main(void){ char string[200]={'\0'}; int kind[70]; char find; gets(string); scanf("%c",&find); int cnt = 0; for(int i = 0;... 阅读全文
posted @ 2015-04-19 09:07
TobeFrank
阅读(218)
评论(0)
推荐(0)
摘要:
练手而已。给初学者参考#include #include int main(void){ char string[200]={'\0'}; gets(string); int cnt = 0; if(string==NULL) { printf("0"); return 0; } for(... 阅读全文
posted @ 2015-04-19 08:41
TobeFrank
阅读(154)
评论(0)
推荐(0)

浙公网安备 33010602011771号