#include #include int main(){ int a ,b , n; double m; for(a=1 ;a<9;a++){ for(b=1;b<9;b++){ n=a*1100+b*11; m=sqrt(n); if(floor(m+0.5)==m) ... ...
分类:
其他好文 时间:
2017-11-03 14:11:34
阅读次数:
121
/*输出所有的形如aabb的4位完全平方数(前两位相等,后两位相等) */ #include #include void main() { int i,j; int m,n; for(i=1;i<=9;i++) for(j=0;j<=9;j++) { n=i*1100+j*11; ... ...
分类:
其他好文 时间:
2017-11-01 18:53:52
阅读次数:
173
函数名: stpcpy 功 能: 拷贝一个字符串到另一个 用 法: char *stpcpy(char *destin, char *source); 程序例: 函数名: strcat 功 能: 字符串拼接函数 用 法: char *strcat(char *destin, char *source ...
分类:
编程语言 时间:
2017-10-29 17:32:11
阅读次数:
144
Implement regular expression matching with support for '.' and '*'. f[i][j - 2]表示前面的元素出现0次,后面表示出现次数大于等于1. aabbb aab.* 能够出现多次,说明s中减少一个(i -1)也能匹配,所以这个条件 ...
分类:
其他好文 时间:
2017-10-27 01:43:37
阅读次数:
172
Find the length of the longest substring T of a given string (consists of lowercase letters only) such that every character in T appears no less than ...
分类:
其他好文 时间:
2017-10-17 15:15:41
阅读次数:
141
一、 1. H5+CSS 2. Js 3. 查文档 4. 问人 5. 效能分析:一个增删改的系统 6. 没有 7. 没有 二、 1-5:ccbbb 6-10:aabcb 11-15:aabba 16-20:abcbb 21-37:acccbc dacab cabcc ad ...
分类:
其他好文 时间:
2017-10-08 22:37:30
阅读次数:
204
第一部分 因为没兴趣也没想从事这行业所以学习的东西不多很多东西不会 团队协作 第二部分 bbaacaabbabbaaaaaaaaaaaaaabbccaa ...
分类:
其他好文 时间:
2017-10-07 18:39:05
阅读次数:
125
Description 给定两个字符串,求出在两个字符串中各取出一个子串使得这两个子串相同的方案数。两个方案不同当且仅当这两个子串中有一个位置不同。 给定两个字符串,求出在两个字符串中各取出一个子串使得这两个子串相同的方案数。两个方案不同当且仅当这两个子串中有一个位置不同。 Input 两行,两个字 ...
分类:
其他好文 时间:
2017-10-06 22:31:12
阅读次数:
206
Python strip() 方法用于移除字符串头尾指定的字符(默认为空格)。 当使用strip('xxx'),只要字符串头尾有"xxx"中的一个,就会去掉,而不是符合字符串''xxx''才去掉 ...
分类:
编程语言 时间:
2017-09-28 15:35:10
阅读次数:
135
所谓回文字符串,就是一个字符串从左到右读和从右到左读是完全一样的。比如:"level" 、“aaabbaaa”、 "madam"、"radar"。 如何判断字符串是否是回文呢?解决思路如下: 1. 采取穷举法(Brute Force algorithm),枚举并检查(enumerate & chec ...
分类:
编程语言 时间:
2017-09-26 11:58:43
阅读次数:
293